Skip to content

Session::configure overrides setHandler settings #15

Description

@lexaurin

Imagine this scenario:

$session->setOptions(array('save_handler' => 'redis');
$session->setHandler(new RedisStorageExtension);
$session->start(); //overrides my custom handler with native 'redis'

Nette/Session overrides custom handler on Session::start();

In my situation I cannot leave save_handler with default files value because my handler extends Redis handler, not the default one.
Setting handler after session start could help but session start is lazy and we don't know when it happens.

Edit: Documentation about session handler extensions http://php.net/manual/en/class.sessionhandler.php

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions