Solved

asp session times out too fast

Posted on 2004-04-23
6
909 Views
Last Modified: 2007-12-19
classic ASP on IIS 5 - I have set Session to timeout in 60 minutes, both in my web pages (Session.Timeout), and in IIS. yet sessions always timeout in 15 minutes or so.

is this a bug or is there a way to solve this?
0
Comment
Question by:SweatCoder
  • 4
  • 2
6 Comments
 
LVL 31

Expert Comment

by:alorentz
ID: 10901980
Doesn't sound familiar, post the code where you adjust timeout.

And, you should set session.timeout = 60 in global.asa just to be safe...
0
 
LVL 31

Expert Comment

by:alorentz
ID: 10901998
And how are you determining that it is timeing out to early?
0
 
LVL 11

Author Comment

by:SweatCoder
ID: 10902013
where in global? Application_OnStart?

and is there a "one best place" to set this? i've tried various combinations, and the session always times out way too soon, no matter what i do.

at the top of my INCLUDE header file, I just do Session.Timeout = 60. that's it.
0
Efficient way to get backups off site to Azure

This user guide provides instructions on how to deploy and configure both a StoneFly Scale Out NAS Enterprise Cloud Drive virtual machine and Veeam Cloud Connect in the Microsoft Azure Cloud.

 
LVL 11

Author Comment

by:SweatCoder
ID: 10902029
i determine the early timeout by simply noticing that if i don't hit or refresh one of my asp pages for roughly 15 minutes, it has timed out. if i wait only 10 minutes, session is still active. there are many users of this webapp, and everyone experiences roughly the same thing.
0
 
LVL 31

Accepted Solution

by:
alorentz earned 250 total points
ID: 10902078
Sub Session_OnStart
   session.timeout = 60
End sub
0
 
LVL 31

Expert Comment

by:alorentz
ID: 10902091
Just in session_onstart...no other place is necessary.

And, if this is not your server, then the hosting company may have something set up to maintain resources.
0

Featured Post

ScreenConnect 6.0 Free Trial

Check out the updates in one game-changing release, ScreenConnect 6.0, based on partner feedback. New features include a redesigned UI that improves session organization and overall user experience. See the enhancements for yourself!

Question has a verified solution.

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

I have helped a lot of people on EE with their coding sources and have enjoyed near about every minute of it. Sometimes it can get a little tedious but it is always a challenge and the one thing that I always say is:  The Exchange of information …
Hello, all! I just recently started using Microsoft's IIS 7.5 within Windows 7, as I just downloaded and installed the 90 day trial of Windows 7. (Got to love Microsoft for allowing 90 days) The main reason for downloading and testing Windows 7 is t…
Microsoft Active Directory, the widely used IT infrastructure, is known for its high risk of credential theft. The best way to test your Active Directory’s vulnerabilities to pass-the-ticket, pass-the-hash, privilege escalation, and malware attacks …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

810 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