ASP.NET Forms Authentication - Alerting the User to End Session
2 answers
You can just use setTimeout with a time period before the session expires and do something like alert () a minute or so earlier. Therefore, if you have a session timeout of 20 minutes, you can make an alert after 19 minutes of inactivity.
Edit as others have suggested there are alternatives (possibly better). Take a look at this for an example.
+3
source to share