SSF
asked on
session.timeout
in global.asa application_onStart i have
session.timeout=1
but it doesn't seem to execute the code i have in session_onend after one minute. what's wrong?
session.timeout=1
but it doesn't seem to execute the code i have in session_onend after one minute. what's wrong?
If you are serious about timing out your session, you can also configure the timeout for your server (or your application) through Internet Service Manager.
Tom
Tom
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SSF,
This is the Session_OnEnd bug. :p
Regards,
Wee Siong
This is the Session_OnEnd bug. :p
Regards,
Wee Siong
Exactly weesiong,
Session_OnEnd is unreliable. Do not create applications that rely on Session_OnEnd to occur, because it doesn't always happen. This is a known bug and seems to have been reduced (if not eliminated entirely) in IIS 5.0, which ships with Windows 2000. This bug is one of many reasons to not store recordsets, connections or other objects in session variables, mainly the session timout fires randomly or even never fires so the session on end firing event is directly related to this..
Session_OnEnd is unreliable. Do not create applications that rely on Session_OnEnd to occur, because it doesn't always happen. This is a known bug and seems to have been reduced (if not eliminated entirely) in IIS 5.0, which ships with Windows 2000. This bug is one of many reasons to not store recordsets, connections or other objects in session variables, mainly the session timout fires randomly or even never fires so the session on end firing event is directly related to this..
SSF,
In the code for the OnEnd event procedure,you have access only to the Application, server, and session objects.
And most important, you have no access to the Response object or Request object if you have any of these objects in your OnEnd event that may be the problem.
In the code for the OnEnd event procedure,you have access only to the Application, server, and session objects.
And most important, you have no access to the Response object or Request object if you have any of these objects in your OnEnd event that may be the problem.
SUB Session_OnStart
session.timeout=480
put it in Session_OnStart
session.timeout=480
put it in Session_OnStart
ASKER
thanks all! i'm giving this one to kmv and Silvers5.
Silvers5,
i'll post another question for you to get the points.
Silvers5,
i'll post another question for you to get the points.
Thank you.
Best regards.
Michael.
Best regards.
Michael.
ASKER
makerp,
just out of curiosity, what does
session.timeout=480
do?
just out of curiosity, what does
session.timeout=480
do?
480 minutes.. the session will time out in that amount, by default it's 20 minutes
rgrds
rgrds
ASKER
that doesn't seem very useful.
hongjun