beaucal / beaucal-invalid-session
When ZendSession validation fails, the session is simply cleared. When you'd rather avoid nasty blocking errors.
Installs: 23 701
Dependents: 1
Suggesters: 0
Security: 0
Stars: 6
Watchers: 3
Forks: 2
Open Issues: 0
Requires
- php: ^5.3.3 || ^7.0
- zendframework/zend-mvc: ^2.1 || ^3.0
- zendframework/zend-session: ^2.1
This package is not auto-updated.
Last update: 2025-01-18 19:03:42 UTC
README
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:
'modules' => ['BeaucalInvalidSession', 'Other Modules...']