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


preetilak
07-28-2005, 06:11 AM
How do I expire a session after a few nibutes from the current time in ASP?


I am setting a cookie like...
<%
session("cookiejar") = "test message"
%>

How to clear this session?

minority
07-28-2005, 06:26 AM
ok you can use this

session.timeout=15

the number is the number of minutes which a user can be idle before sessions is timedout.

you can do session.abandon (Not sure if it spelt right)

or if you want to just clear a session
session("jar") = "" should probably do it