I'm using sessions to test for user authenication. My problem is using
this statement at the top of all my pages stops the pages from being
cached. Therefore they will be executed every time the user calls the
page. This way my check to see if the user is logged in will always be
executed. My issue is that i really only want to expire every page if
the user has logged out. Not after every page. When i do it now
sometimes i get Warning: Page has Expired when i'm logged in and i'm just
trying to go back to the previous page. Any body has any ideals of how i
can accomplish this. Expire every page when the user has logged out.
Response.blah-SomeheaderOr MetaContent
'=================================
if Session("login")="" then
Response.CacheControl = "no-cache"
End if
'=================================
Response.blah-SomeMoreheaderOr MetaContent
You should also be able to use "Select Case".
----- Original Message -----
From: "howard hardaway" <hharda9791@a...>
To: "ASPToday Discuss" <asptoday_discuss@p...>
Sent: Thursday, January 24, 2002 1:45 AM
Subject: [asptoday_discuss] response.CacheControl = "no-cache"
> I'm using sessions to test for user authenication. My problem is using
> this statement at the top of all my pages stops the pages from being
> cached. Therefore they will be executed every time the user calls the
> page. This way my check to see if the user is logged in will always be
> executed. My issue is that i really only want to expire every page if
> the user has logged out. Not after every page. When i do it now
> sometimes i get Warning: Page has Expired when i'm logged in and i'm just
> trying to go back to the previous page. Any body has any ideals of how i
> can accomplish this. Expire every page when the user has logged out.
_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com