Skip to content

Session::configure overrides setHandler settings #15

@lexaurin

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

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