Web page expired message display when click on IE7's Back button

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Sarvesh997
    New Member
    • Feb 2007
    • 2

    #1

    Web page expired message display when click on IE7's Back button

    Hi,

    I have one problem regarding search & search results page in IE & Firefox.
    A code in both pages written in Php & database in MySQL

    Problem :

    When i selected one or more checkbox & dropdown items on search page & click on GO button then search result page open. & when i click on browser's BACK button then in IE "Web Page Expired" message dispayed & in firefox the search page dispaly.

    also i want when i come back to previous page the previously selected itmes stay as it is. ( selected items shoud be selected when i come back).

    Pls. help me.

    Thanks
    Sarvesh
    php dev.
  • devsusen
    New Member
    • Feb 2007
    • 136

    #2
    Originally posted by Sarvesh997
    Hi,

    When i selected one or more checkbox & dropdown items on search page & click on GO button then search result page open. & when i click on browser's BACK button then in IE "Web Page Expired" message dispayed & in firefox the search page dispaly.
    Are you using any php script while generating the search page? I mean if your search page is a .php file then IE normally expire the session for the page. If its a normal HTML page then you shouldn't have this problem.

    Susen

    Comment

    • Sarvesh997
      New Member
      • Feb 2007
      • 2

      #3
      hi,

      I have a search page with some checkboxes & dropdown lists.

      & used only php coding with html.
      But when i came back by clicking browser's back button from search results page to search page :

      1) IE shows "web page expired" message & again cliking on back button then display search page with previously selected checkboxes r unchecked.

      2) In firefox automatically come back on search page. but selected checkboxes shows unchecked.

      Pls. send javascript code or any php code for handaling browser problem & select problem.

      Thanks,
      Sarvesh

      Comment

      • Motoma
        Recognized Expert Specialist
        • Jan 2007
        • 3236

        #4
        Two solutions:
        a) hit your refresh button.
        b) code the search to use $_GET rather than $_POST

        Comment

        • jojet
          New Member
          • Nov 2007
          • 1

          #5
          Another option is to emit headers from PHP which allows IE etc to cache the search results page for a little while

          e.g.

          header('Pragma: ' . 'public');
          header("Cache-Control: public");
          header('Expires : ' . gmdate('D, d M Y H:i:s', time()+(60*10)) . ' GMT'

          I had the "page expired" problem and this allows me to back button back to the PHP search results page.

          Performing another search gives you fresh results to this doesn't clog up your cache or anything.

          Joel

          Comment

          Working...