You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Feb 7, 2021. It is now read-only.
Eric Richer edited this page Jul 10, 2020
·
1 revision
Task
Configure the Session Manager to help mitigate session hijacking attacks.
Solution
If you haven't already done so, add the session manager factory to your application via a module config or config/autoload file.
In the same file (or another file if you prefer), add the session_manager key and insert the session validators you wish to load. In this case we'll use both RemoteAddr and HttpUserAgent:
Alternatively, you could use an external module such as HtSession instead of a manual configuration.
NOTE: This does not really secure your session against hijacking attacks unless it's 1994. Please use HTTPS, secure cookies, HTTP only cookies, CSRF protection, credential re-entry and session regeneration to make sure your sessions are secure.