When session expires logout but alert the user before doing so
HI Guys,
I want to redirect the user to the login page after the session expires rather than only noticing after refreshing the page.
Also when the session has 60 seconds left I want a pop up to appear with a warning message 'Your session is due to expire in 1 minute due to inactivity' and only on click does the session remain and user is not logged out.
any ideas how I should go about doing this. I have set the session timeout in the env file and have looked into the handler method but just feel they maybe an easy way of doing this.