|
-
Nov 10th, 2003, 06:28 AM
#1
Thread Starter
Frenzied Member
Force re-load *RESOLVED*
I have a page that i only want accessable if the user has come from a certain page. The logic for this is all good and well but the problem occurs if the user hits the back button in their browser, the page is displayed again but the sub page_load doesn't fire.
How can i force the page to reload?
I've tried messing around with various methods so far with no luck, any idea's?
Last edited by Fishcake; Nov 12th, 2003 at 08:56 AM.
-
Nov 10th, 2003, 09:04 AM
#2
PowerPoster
Haven't tested this, but give it at go:
Code:
// Add the no-cache header to the response so stale pages are not served up
Response.AddHeader("Cache-control", "private, no-cache, must-revalidate");
Response.AddHeader("Expires", "Mon, 7 Jul 1980 05:00:00 GMT");
Response.AddHeader("Pragma", "no-cache");
-
Nov 12th, 2003, 04:46 AM
#3
Thread Starter
Frenzied Member
Cheers Lethal thats almost done the trick.
If a user tries to go back to the page they get a "Warning: Page has Expired" page but they are still able to hit refresh and resend the information.
There must be a way to stop the Browser being able to just re-send information, isn't there?
Last edited by Fishcake; Nov 12th, 2003 at 08:57 AM.
-
Nov 12th, 2003, 08:58 AM
#4
Thread Starter
Frenzied Member
Got it sorted now, cheers.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|