Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

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

Posted on 2009-04-03
3
Medium Priority
?
283 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 400 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

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Question has a verified solution.

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

A basic question.. “What is the Garbage Collector?” The usual answer given back: “Garbage collector is a background thread run by the CLR for freeing up the memory space used by the objects which are no longer used by the program.” I wondered …
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
This lesson discusses how to use a Mainform + Subforms in Microsoft Access to find and enter data for payments on orders. The sample data comes from a custom shop that builds and sells movable storage structures that are delivered to your property. …
Suggested Courses

972 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