Click here to Skip to main content
16,018,417 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

I'm working on asp.net 3.5 application. I want to get popup message["Your session is about to expire.Please click on Yes to continue."] with two buttons("yes","No") before session expired(10 min).

[ "YES" --> session will be alive for next 10 min]
["No" -- > session will be closed and redirect to login page]

How to do this in asp.net?

Thanks in advance.


Thanks,
Rahul
Posted
Comments
Karthik_Mahalingam 1-Jan-14 2:24am    
ZurdoDev 1-Jan-14 10:13am    
I would suggest you post as solution.
Faisalabadians 1-Jan-14 3:06am    
that is possible by using javascript setTimeOut() and clearTimeout() methods, but remember, you need to handle it by yourself in scenario where user request for something and page does not refresh (assuming ajax call) then this would popup session expire message too, I hope you got what I asked.
So, what have you tried and where is the problem?

1 solution

follow this link..
try to customize it.

Alert Session Time out in ASP.NET[^]
 
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