Jose Saiz

Jose Saiz

  • 1.5k
  • 260
  • 103.8k

Auto sign out user when session expired

Nov 1 2018 9:07 AM
Hi guys
I have problem with auto signout user when session expired please see attached sample project for more detail
I am not using the default class FormAuthentication, I am using my own login form
I set the form authentication to 5 minutes in the web.config, that way when client become IDLE session expires and redirect user to login again.
 
The thing is that it is not auto sign out the user, in order for the client to be redirected to the login page the user needs do some click on the page and it does not works every time.
 
what I want to accomplish is that is the client user is IDLE for more than 5 minutes then automatically sign out the user and prompt the user for login again.
 
Can any one help me on this task, please be kind and provide sample code for solutions to my problem.
 
TIA. 

Attachment: SessionExpired.zip

Answers (1)