-
Preventing Session TimeOut
Hi all,
How do I keep a session from timing out if the user doesn't close the
browser?
I tried this:
<body onload="setTimeout('document.form1.submit()', 9000000)">
This is supposed to submit the form every 15 minutes and reset the timeout
for another 15 after loading again. It seems to work, but every time that
it
reloads the timeout keeps on getting shorter and shorter.
Do you know how to fix this or a better way to keep the session from timing
out?
Thanks for your help.
-
Re: Preventing Session TimeOut
if you want to do it for everyone on the web app, its just an easy change
in the machine.config file...
<system.web>
<sessionState
mode="InProc"
cookieless="False"
timeout="5000" -put in any number you want here
/>
</system.web>
"Alejandro Beltran" <alejandro@avantext.com> wrote:
>
>Hi all,
>
>How do I keep a session from timing out if the user doesn't close the
>browser?
>
>I tried this:
>
><body onload="setTimeout('document.form1.submit()', 9000000)">
>
>This is supposed to submit the form every 15 minutes and reset the timeout
>for another 15 after loading again. It seems to work, but every time that
>it
>reloads the timeout keeps on getting shorter and shorter.
>Do you know how to fix this or a better way to keep the session from timing
>out?
>
>Thanks for your help.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
Forum Rules
|
Top DevX Stories
Easy Web Services with SQL Server 2005 HTTP Endpoints
JavaOne 2005: Java Platform Roadmap Focuses on Ease of Development, Sun Focuses on the "Free" in F.O.S.S.
Wed Yourself to UML with the Power of Associations
Microsoft to Add AJAX Capabilities to ASP.NET
IBM's Cloudscape Versus MySQL
|
Bookmarks