Solved

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

Posted on 2009-04-03
3
274 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

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
Flash (http://en.wikipedia.org/wiki/Adobe_Flash) has evolved over the years to where it has become a masterful tool for displaying content screen.  It has excellent layout placement, UI precision as well as rendering capabilities. This, along with t…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

747 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now