Skip to content

Loading…

[Session][Auth] Since the recent BC changes to Sessions, Zend\Authentication\Storage\Session does not work #3450

Closed
davidwindell opened this Issue · 5 comments

3 participants

@davidwindell

To work around this issue without making any other changes, you currently have to put the following someone in your App's bootstrap process;

        $sessionStorage = new \Zend\Session\Storage\SessionStorage();
        $sessionManager = new \Zend\Session\SessionManager();
        $sessionManager->setStorage($sessionStorage);
        \Zend\Session\Container::setDefaultManager($sessionManager);

I have been unable to find the exact cause and long term solution.

@netiul

Failing example using skeleton https://gist.github.com/4547622

@weierophinney
Zend Framework member

#3452 contains a fix for this.

@netiul

@weierophinney Provided example still fails on develop branch (using SessionArrayStorage). On master it works fine.

@netiul

zendframework/zf2#3458 addresses the exact cause of this issue and I can confirm the solution provided actually works.

Looks like casting SessionArrayStorage to array fails. SessionArrayStorage::toArray() must be used.

@davidwindell

I can confirm that the PR attached to #3458 solves this correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.