Wrox Home  
Search P2P Archive for: Go

  Return to Index  

asptoday_discuss thread: response.CacheControl = "no-cache"


Message #1 by "howard hardaway" <hharda9791@a...> on Thu, 24 Jan 2002 01:45:24
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. 
Message #2 by "asame" <asame00@y...> on Thu, 24 Jan 2002 13:16:31 -0000
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








  Return to Index