Results 1 to 4 of 4

Thread: Force re-load *RESOLVED*

  1. #1

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092

    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.

  2. #2
    PowerPoster Lethal's Avatar
    Join Date
    Oct 2000
    Location
    Ohio
    Posts
    2,496
    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");

  3. #3

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    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.

  4. #4

    Thread Starter
    Frenzied Member Fishcake's Avatar
    Join Date
    Feb 2001
    Location
    Derby, UK
    Posts
    1,092
    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
  •  



Click Here to Expand Forum to Full Width