Re: ASP session

by Robin Liston <rliston(at)cox.net>

 Date:  Sun, 13 Oct 2002 14:47:04 -0700
 To:  hwg-languages(at)hwg.org
 References:  cox
  todo: View Thread, Original
Actually I do have that code on my pages.
It doesn't affect the session object. The page they receive by hitting the 
back button is "new" but they are still logged in.

At 12:20 PM 10/12/2002 +0100, Mario Figueiredo wrote:
>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 = True
>   Response.ExpiresAbsolute = Now() - 1
>   Response.Expires = 0
>   Response.CacheControl = 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='""%> directive.
>
>Best Regards,
>Mario Figueiredo
>http://www.marfig.com  (portuguese speakers)
>http://www.marfig.com/en_index.htm (english speakers)
>admin(at)marfig.com
>
>=========================================================

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