Click here to Skip to main content
15,847,077 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:

I need code for auto redirect to Login page when session expires.
here need to consider the following things.
1)when page is in idle mode[if session expires auto redirect to login screen and kill the session]
2) when user performing any action increase the session time.

Note : when page in idle mode then only auto redirect to login screen when session expires.

How it can be possible?

Please help me.
Jignesh Khant 24-Aug-13 8:45am    
like this:

// whatever you want to do

SumanPalla 24-Aug-13 8:54am    
Hai Jignesh Khant ,
When session expires the page should automatically redirect to login screen with out any action.
in ur case if we do any action then it will redirect to login screen.

1 solution

I believe in this case you need to use JavaScript. I hope below link will help you.

how to logout with confirm button when page opens idle for 2 mins ?[^]
Share this answer

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900