Re: ASP session
by Mario Figueiredo <admin(at)marfig.com>
|
| Date: |
Sat, 12 Oct 2002 12:20:11 +0100 |
| To: |
<hwg-languages(at)hwg.org> |
| In-Reply-To: |
cox |
| |
todo: View
Thread,
Original
|
|
Hello Robin,
You need to disable page caching on every page. That is, every=
time the
browser calls for some page on your site, it is forced to fetch=
the page
from the server, and not the cached version. For that write:
<%
Response.Buffer =3D True
Response.ExpiresAbsolute =3D Now() - 1
Response.Expires =3D 0
Response.CacheControl =3D False
%>
This will do. Caching will be disabled for every page that=
contains this
block of code. Note that this should go at the very beggining of=
your ASP
pages, just after the <%@LANGUAGE=3D'""%> directive.
Best Regards,
Mario Figueiredo
http://www.marfig.com (portuguese speakers)
http://www.marfig.com/en_index.htm (english speakers)
admin(at)marfig.com
On Fri, 11 Oct 2002 20:48:09 -0700, Robin Liston wrote:
>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
>
>
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
>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=3Dutccom,utcc=
om2,utccom3
>,utccom4
>=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D
>
HWG: hwg-languages mailing list archives,
maintained by Webmasters @ IWA
This page is part of a preserved archive of archives.hwg.org. The site is no longer active and its content is not maintained. For enquiries about this archive, write to archive(at)iwanet.org.