|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
1200+ fellow developers rate and compare features of the top IDEs, like Visual Studio, Eclipse, RAD, Delphi and others, across 13 categories. Enjoy this FREE Download of the IDE User Satisfaction Study by Evans Data Corporation. Download Now!
|
|
#1
|
|||
|
|||
|
Session Timeout
Suppose I set the timeout of my session at 2 hours. If I remain using my ASP application for the full 2 hours, that is, it is never idle for more than say 20 minutes, does it still abandon the session after 2 hours? Or is the session only abandoned after 2 hours if, in that time, I haven't requested anything from the server?
Thanks in advance |
|
#2
|
|||
|
|||
|
Sessions apply to open and active sessions. Two hours seems a bit `long` for a web application.
|
|
#3
|
|||
|
|||
|
Weelll, its not a web application as such
Its a time recording system for where I work - approx 50 users, that is accessed via our Intranet The 2 hour timeout was aimed at encouraging people to only log in when they are using it rather than have it sitting idle all day....I just wanted to clarify how the timeout works, whether it is a 2 hr limit clear and simple or if it is longer if it is constantly active |
|
#4
|
|||
|
|||
|
If you set a session timeout either by code or through the IIS service manager, the timeout period refers to the length of time since the last activity that's seen by the server. If you had an automatic meta refresh of 5 or 10 minutes in your pages, the session will never time out because every time the server gets another page request it resets the timeout timer.
|
|
#5
|
|||
|
|||
|
Whenever you make a page request from server, server sets a default session timeout of 20 minuts if you did not set to some other time i.e
session.timeout=30 timeout can only be set in minuts not in hours if there is an inactivity in the page for more than the set timeout then session gets expired if you want more info abt it please post another reply
__________________
Rahul Small things lead to perfection and perfection is not a small thing. |
|
#6
|
|||
|
|||
|
yeah, i struggled with sessions recently, and i came to the conclusion NOT to use them, its my personal opinion.
|
|
#7
|
|||
|
|||
|
Agarash, you are wrong. Session is the best thing provided in ASP it depends upon you how you use that. my several sites are running on sessions only and they are running fine
|
|
#8
|
|||
|
|||
|
yeah well, the thing is, i guess it depends on what you need to do. i wanted someting more permanent, so application variables was much better for me, and session variables will timeout....sooner or later.
![]() |
|
#9
|
|||
|
|||
|
Yup, it is how you use it, it depends upon what you need to do
|
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > Session Timeout |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|