I believe that session and timeout information is normally done in IIS. You could set the session info to a ridiculously large number (though there may be a limit I'm currently unaware of) in IIS, though am unaware of a way to keep a session from timing out specifically without javascript prompting the page to refresh every so often. You might also check out forum41 for more information on IIS.
------------------------------------------------------------------------------------------------------------------------
"I am not young enough to know everything."
Oscar Wilde (1854-1900)
Yet another difference between ASP Classic and .NET. Hadn't realised that one... I would definitely go with ca8msm's suggestion...
------------------------------------------------------------------------------------------------------------------------
"I am not young enough to know everything."
Oscar Wilde (1854-1900)
Actually I have tried changing the values in web.config. However, it still timeouts in less than 5 minutes. (Does this imply that IIS is setup incorrectly?) One of the design requirements of the site is that it does not allow client-side scripting. It has to do it all server side. The clients have to remain on the page for sometimes upwards close to 3-4 hours. By the time they have input their data the site has timed out. Any other ideas?
Change the session timeout in IIS as well as the Web.config file
Rhys
""Vampireware /n/, a project, capable of sucking the lifeblood out of anyone unfortunate enough to be assigned to it, which never actually sees the light of day, but nonetheless refuses to die."
If you are wanting session vars to last for very long amount of time, like in a case where someone is filling a large finicial form that may stay on their computer for a day, then you can use a combination of viewstate and session.
Sub Page_Load()
If Session("AccountID") = nothing then
Session("AccountID") = Viewstate("AccountID")
else
Viewstate("AccountID") = Session("AccountID")
end if
end sub
Only use this when the only expection action is a post back so the expired session variable will refresh itself with the viewstate.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.