Implementing Application Idle time out for web sites

S

Shikari Shambu

Hi,
I am interested in implementing a idle session time out for my ASP.NET
application running on Windows 2003/ IIS6.

Does ASP.NET or IIS 6 provide a setting to do this. Or, do I need to use
Javascript? What are the best practices.

TIA
 
S

Scott G.

I use some javascript in the onload attribute of the <body> tag; it looks something like this:

<body onload="setTimeout('AutoLogoff',10000)" >

Where 10000 is the (Session.Timeout - some-fudge-factor); and AutoLogoff is a Javascript function that changes the document.location to my logoff ASPX page.


Scott
Hi,
I am interested in implementing a idle session time out for my ASP.NET
application running on Windows 2003/ IIS6.

Does ASP.NET or IIS 6 provide a setting to do this. Or, do I need to use
Javascript? What are the best practices.

TIA
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top