...

View Full Version : Warning: Page Expired



jaywhy13
01-03-2005, 05:47 PM
I don't know if I'm posting this in the right forum. If I'm not let me know. But part of me tells me that the answer to my question resides within the coding capabilities of ASP........ :thumbsup: :D
:rolleyes:
:cool:
I'm doing up a messaging system. After the user deletes the message I want the user to be unable to go Back... as i, if they hit the back button in their browser it shoots up the "Warning: Page Expired" page.
:D
:p

NEExt
01-03-2005, 07:30 PM
Put this at the top of the page you want to expire and it should work.



<%
Response.Expires = 60
Response.Expiresabsolute = Now() - 1
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "no-cache"
Response.CacheControl = "no-cache"
Response.AddHeader "Pragma", "no-cache"
Response.Expires = -1
%>

jaywhy13
01-04-2005, 08:14 AM
:D THanks alot man! :thumbsup: :thumbsup: :D

Hey there's one other thing.
When users sign out of my system. It takes them to a signout.asp page that deletes their record from the database that would signify activity.

I've put a redirect to carry the users to another page right? I dropped the code on the signout page. But users click Back it takes them back in?

It is because of the redirect? How would i delay the redirect?

jaywhy13
01-05-2005, 03:08 AM
:eek:
I have yet another concern.... I have designed a messaging sytem right....

WHen the user is in their inbox i don't wanna necessarily have the code u supplied at the top of the page because I want the users to be able to use the back button to come out of a message for example and return to the listing of messages (their inbox).

But then if they click the Delete button, it deletes the message and then reloads the page. I want the page they came from to expire!

How would I do that?

Also, is there a way to say delete/make all pages expire when the user signs out? So that despite how many times the back button is pressed they won't end back up in their inbox! :confused: :confused:



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum