Click to See Complete Forum and Search --> : session timeout


twixy2k
02-10-2003, 08:02 AM
Hi, quite new to sessions so sorry if i sound dumb
<script language=vbscript runat=server>
Session("user") = cStr(Request("username"))
</script>

How do i add a longer timeout the 20 min. Can it be changed to 1 hour or something

Thanks
Alan

Nicodemas
02-10-2003, 08:36 AM
Maybe I'm missing something here, but this line:
Session("user") = cStr(Request("username"))

Should probably be this:
Session("user") = cStr(Request.[QueryString||Form] "username"))

But to answer your question, the Session.Timeout value is changed by adding this:

Session.Timeout = ## where the ##'s are the number of minutes that the session will last.