beaucal/beaucal-invalid-session

When ZendSession validation fails, the session is simply cleared. When you'd rather avoid nasty blocking errors.

v0.3.0 2017-08-30 22:24 UTC

This package is not auto-updated.

Last update: 2024-04-27 15:31:29 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...']