[thelist] In ASP, getting remaining time left in session.timeout

Tom McMillen tgmcmillen at yahoo.co.uk
Tue Jul 2 08:57:01 CDT 2002


 --- Craig <cd-ml at aardvark.net.au> wrote: > Hi.  I've
had a bit of a look around for a way with
> ASP to get the remaining
> time left in session.timeout and haven't found much.
>  For example if I set
> session.timeout=10 (for 10 minutes), 5 minutes later
> I would like to see on
> my page that only 5 minutes are left.
>

The session timeout is reset every time the user
visits a page. The default is 20 mins. If you set the
timeout to 10 mins the user has 10 mins to visit
another page or refresh the current one before the
timeout. To display the time remaining you would have
to use something on the client side, on the server
side it will always be 10 minutes.

To end a session before it's timed out you can call
Session.Abandon() on the server.

t

__________________________________________________
Do You Yahoo!?
Everything you'll ever need on one web page
from News and Sport to Email and Music Charts
http://uk.my.yahoo.com



More information about the thelist mailing list