Solved

asp session times out too fast

Posted on 2004-04-23
6
912 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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
Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
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

Online Training Solution

Drastically shorten your training time with WalkMe's advanced online training solution that Guides your trainees to action. Forget about retraining and skyrocket knowledge retention rates.

Question has a verified solution.

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

I recently decide that I needed a way to make my pages scream on the net.   While searching around how I can accomplish this I stumbled across a great article that stated "minimize the server requests." I got to thinking, hey, I use more than one…
I was asked about the differences between classic ASP and ASP.NET, so let me put them down here, for reference: Let's make the introductions... Classic ASP was launched by Microsoft in 1998 and dynamically generate web pages upon user interact…
In a recent question (https://www.experts-exchange.com/questions/29004105/Run-AutoHotkey-script-directly-from-Notepad.html) here at Experts Exchange, a member asked how to run an AutoHotkey script (.AHK) directly from Notepad++ (aka NPP). This video…

730 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