Skip to content

BeauCal/beaucal-invalid-session

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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:

'modules' => ['BeaucalInvalidSession', 'Other Modules...']

About

When ZendSession validation fails, the session will simply be cleared nice and quiet-like. When you'd rather avoid nasty blocking errors.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages