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

lon.kraemer lwkraemer at directvinternet.com
Wed Jul 3 01:46:00 CDT 2002

> I will be setting session.timeout on one page and trying to read the
> remaining time from another page.  It wont' be setting session.timeout
> visit to the page.

<% session.timeout=10 %>

You are telling the SERVER to end this session IF there are NO more
requests from the same client (session) within 10 minutes. You are
overriding the default timeout value set ON the server (usually 20

EVERY subsequent request for another (ANY) page will reset the timer to
0 at the server, UNLESS it is CHANGED in the newly requested page. If
the new page does NOT set a new timeout value, it'll remain at the
previously set value of 10 minutes, but will still be reset to 0.

You CANNOT _read_ the remaining time because it'll ALWAYS be 10 minutes
when a/the/any page leaves the server. You can ONLY calculate the
remaining time AT the client using client-side scripting (e.g. a
Javascript countdown timer).

Why don't you tell us what you're trying to accomplish?

More information about the thelist mailing list