Re: ASP session
by "Mike Taylor" <lonewolf(at)one.net>
|
Date: |
Sun, 13 Oct 2002 19:10:04 -0400 |
To: |
<hwg-languages(at)hwg.org> |
References: |
cox |
|
todo: View
Thread,
Original
|
|
I don't know of a clear way to do what you want here. If your goal is to
destroy values on a particular page that typically uses session variables,
I'd suggest instead using the request object, since request values get
destroyed as soon as the person types in a new URL on the browser and leaves
the site.
The whole idea behind the session object is to maintain state for the entire
time the user has the browser open or the time that the session is set to
expire, whichever comes first. The session object isn't designed to respond
in the manner you are wanting.
This doesn't have something to do with pop-ups, does it? If so, there's a
programmer who handles Time Warner's sites (People magazine, Time, CNN,
etc.) that has achieved the holy grail of pop-up functionality. It might be
worth investigating if you are interested in a client-side method instead of
server-side scripting. He leaves his contact info in the source code of his
scripts so you might want to check there.
Mike
----- Original Message -----
From: "Robin Liston" <rliston(at)cox.net>
To: <hwg-languages(at)hwg.org>
Sent: Friday, October 11, 2002 11:48 PM
Subject: ASP session
> Does anyone know how to destroy an ASP session object when a user types a
> URL in the address bar to leave a site?
>
> I already have a the site set up so the session object is destroyed when
> they click a link, but I can't figure out how to destroy it if they simply
> type a URL in the address bar, leaving the site, and then they use their
> browser back button to return to my site. They are still "logged" in. I
> tried using the HTTP Referrer method to check to see if the URL was an
> offsite link but that doesn't work for addresses typed in the address bar.
>
> TIA
>
>
> ==================================================================
> Attention Web Designers and JavaScript, VBScript, and ASP Programmers:
> Buy your career related T-Shirts, Coffee Mugs, and Mousepads at
>
http://www.cafepress.com/cp/store/store.aspx?storeid=utccom,utccom2,utccom3,
utccom4
> ==================================================================
>
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA