Skip to content
This repository has been archived by the owner on Jan 8, 2020. It is now read-only.

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

Closed
davidwindell opened this issue Jan 16, 2013 · 5 comments
Assignees
Milestone

Comments

@davidwindell
Copy link
Contributor

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.

@ghost ghost assigned weierophinney Jan 16, 2013
@zluiten
Copy link
Contributor

zluiten commented Jan 16, 2013

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

@weierophinney
Copy link
Member

#3452 contains a fix for this.

@zluiten
Copy link
Contributor

zluiten commented Jan 17, 2013

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

@zluiten
Copy link
Contributor

zluiten commented Jan 17, 2013

#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
Copy link
Contributor Author

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants