PDA

Click to See Complete Forum and Search --> : Session.Timeout / Session_onEnd


Randhart
Mar 1st, 2001, 01:42 AM
Hey all

So here I am again ...

I want to session Time-out to be increase from the standard .. 10Min? to 60minutes ... yes I know this is a bit much but it's needed for a DataRepositry we have implemented ... users will also be using the site for propably more than that .. what I need to know is this ...

Where do I declare the Session.Timeout, in the Global.asa in the Session_Onstart or in the ASP page itself and is this right .. * Session.Timeout = "60" *

Another point ... can I put a SQL query into the Session_onEnd, that wil update my DB? I tkae it I have to put the Databse invoking stuff intthere as-well ..

Thanks in Advance!

msdnexpert
Mar 1st, 2001, 08:01 PM
Well u can set the Session Timeout directly on the web server. Click on the properties of the web site and increment the timeout.
Also u can make database calls in the Session_OnEnd event

monte96
Mar 2nd, 2001, 01:07 AM
Incidently, you don't need to change the sessiontimeout value if they will be using the site for more than 20 mins. Only if they will be idle for longer than 20 mins. As long as they continue working on it, shouldn't be a problem unless you have some complex DB queries that do not return for a while.

Randhart
Mar 2nd, 2001, 01:13 AM
Well the User goes into a Seperate DB that uses ASP but I haven't tested it yet .. but in theory and what you have just told me I wouldn't need to change the time-out .. I will test it and let you know ....

Thanks Guy's!!!