Download the PHP package danitome24/beaucal-invalid-session without Composer
On this page you can find all versions of the php package danitome24/beaucal-invalid-session. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download danitome24/beaucal-invalid-session
More information about danitome24/beaucal-invalid-session
Files in danitome24/beaucal-invalid-session
Package beaucal-invalid-session
Short Description When ZendSession validation fails, the session is simply cleared. When you'd rather avoid nasty blocking errors.
License MIT
Homepage https://github.com/BeauCal/beaucal-invalid-session
Informations about the package beaucal-invalid-session
BeaucalInvalidSession
Use when you're using Zend\Session\SessionManager
and have session validators. When validators fail, instead of the user being blocked by seemingly permanent exceptions, the session is simply cleared and it's business as usual.
Note: You could add this simple code to your Application module, but you lose this feature if the session is hit in an earlier bootstrap.
Note 2: The HttpUserAgent session validator will fail every time your user's browser updates itself! So use this module and avoid stymied users.
Installation
In application.config.php, install early, as follows:
All versions of beaucal-invalid-session with dependencies
zendframework/zend-session Version ~2.1
zendframework/zend-mvc Version ~2.1