Solved

asp session times out too fast

Posted on 2004-04-23
6
908 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
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

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…
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…
I designed this idea while studying technology in the classroom.  This is a semester long project.  Students are asked to take photographs on a specific topic which they find meaningful, it can be a place or situation such as travel or homelessness.…
Need to grow your business through quality cloud solutions? With everything required to build a cloud platform and solution, you may feel like the distance between you and the cloud is quite long. Help is here. Spend some time learning about the Con…

914 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

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now