Hi all,
I'm sure there's been something similar asked before I just can't seem to find the right search.
I'm trying to figure out if there is a way to alert (i use bootstrap 3) a user that if they've been away too long, it has logged them out and they need to log back in.
For example, my timeout is 20 minutes. If a user comes back to the computer after 30 minutes, when the user refreshes or navigates to a new page, I want laravel to redirect to my login page and display a message that says something like "Hey, you've been inactive for 20 minutes so we've logged you out for your security. Please log back in"
Is there a simple way to do this?
Thanks
Im using this:
https://github.com/ehynds/jquery-idle-timeout
It can display a notification after X number of seconds/minutes since the last mouse/keyboard movement on the page. This is very helpful so it doesn't get in the way if a user has been on a page for a while typing lots of text etc... A normal timeout would get in the way and interrupt the user after X seconds. The notification gives the user X amount of seconds to decide if they are wanting to log out or stay on the page. If they don't answer within X seconds it auto redirects them to a locked page.
For me the locked page gets the user object, logs them out and displays a locked page with their email auto filled, just waiting for a password.
Works very well
Theres a good demo on this template. http://www.keenthemes.com/preview/metronic/theme/templates/admin/ui_idle_timeout.html
Sign in to participate in this thread!
The Laravel portal for problem solving, knowledge sharing and community building.
The community