Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

asp session times out too fast

Posted on 2004-04-23
6
Medium Priority
?
921 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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 1000 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

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 informatio…
I would like to start this tip/trick by saying Thank You, to all who said that this could not be done, as it forced me to make sure that it could be accomplished. :) To start, I want to make sure everyone understands the importance of utilizing p…
Despite its rising prevalence in the business world, "the cloud" is still misunderstood. Some companies still believe common misconceptions about lack of security in cloud solutions and many misuses of cloud storage options still occur every day. …
Whether it be Exchange Server Crash Issues, Dirty Shutdown Errors or Failed to mount error, Stellar Phoenix Mailbox Exchange Recovery has always got your back. With the help of its easy to understand user interface and 3 simple steps recovery proced…
Suggested Courses

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