An error message when session expires? How can I create that?

Is there a way to create a error message or page to let users know their session has expired?

Thanks,
TD
 
TeknikDevAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
TeknikDevConnect With a Mentor Author Commented:
<authentication mode="Windows"/>
 
            <!-- Session expiration set to 1440 minutes(24 hours)-->  
                <sessionState timeout="1440"/>


0
 
oobaylyConnect With a Mentor Commented:
Two suggestions:
  • Store how many milliseconds remain until the session expires, and when the page loads call aa javascript setTimeout that calls a method when the session expires. ie. Show an alert, changing an element on the page, etc.
  • Have an AJAX methods that polls the server to determine whether the session is valid, and show an alert etc....
0
 
oobaylyCommented:
Not contesting that solution,  however can you elaborate on how increasing the session timeout will inform the user that their session has expired? It will aid future EE users who find this article.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.