Solved

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

Posted on 2009-04-03
3
278 Views
Last Modified: 2012-05-06
Is there a way to create a error message or page to let users know their session has expired?

Thanks,
TD
 
0
Comment
Question by:TeknikDev
  • 2
3 Comments
 
LVL 15

Assisted Solution

by:oobayly
oobayly earned 100 total points
ID: 24063869
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
 

Accepted Solution

by:
TeknikDev earned 0 total points
ID: 24117377
<authentication mode="Windows"/>
 
            <!-- Session expiration set to 1440 minutes(24 hours)-->  
                <sessionState timeout="1440"/>


0
 
LVL 15

Expert Comment

by:oobayly
ID: 24117459
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

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Help with opening combobox using VB.NET. 3 38
Need syntax help building hyperlink 2 42
Please explain purpose of GZIP 4 61
how to check mis-spellings in a select SQL 2 39
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This article shows how to deploy dynamic backgrounds to computers depending on the aspect ratio of display
Nobody understands Phishing better than an anti-spam company. That’s why we are providing Phishing Awareness Training to our customers. According to a report by Verizon, only 3% of targeted users report malicious emails to management. With compan…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

730 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question