Link to home
Start Free TrialLog in
Avatar of SSF
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?
Avatar of hongjun
hongjun
Flag of Singapore image

Try including the session.timeout = 1 in Session_OnStart instead.

hongjun
Avatar of TTom
TTom

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
ASKER CERTIFIED SOLUTION
Avatar of kmv
kmv

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SSF,

This is the Session_OnEnd bug. :p

Regards,
Wee Siong
Avatar of Michel Sakr
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..
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.

SUB Session_OnStart
session.timeout=480

put it in Session_OnStart
Avatar of SSF

ASKER

thanks all! i'm giving this one to kmv and Silvers5.

Silvers5,
i'll post another question for you to get the points.

Thank you.

Best regards.
Michael.
Avatar of SSF

ASKER

makerp,
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
Avatar of SSF

ASKER

that doesn't seem very useful.