Back button: "The page cannot be displayed"
Posted on 2004-10-03
Hi, I have a whole site set up in PHP, and only one problem (at the moment). The user goes to the login page, logs in, form info is submitted to test.php, the redirected to home.php. From there the user clicks on any link, goes to page1.php. Then hits back, and gets a "The page cannot be displayed" error. If the reload button is hit, home.php comes up fine, without even loosing any session variables. What is even wierder is that this only has to be done once. After that they can press back and it goes to home.php witout having to reload.
I have a line `header("Cache-control: public");` at the top, and this hasn't fixed it. This is not really in my area of php, so I am hoping someone knows how to deal with this. This same question was asked before and I found it in my search, but I couldn't glean a real answer to it. Thanks in advance.