I've tried out Nick's idea of using GET instead of POST in my login form.
But surely this defeats the whole purpose of sessions? I really don't want user data being displayed in a URL for security reasons.
Has anyone else cracked this browser refresh problem in PHP4?
My login system works - to an extent.
After logging in, the user can click on a link to go to another page.
Now I have provided a textual BACK link on that page - if the user clicks on this, he can go back to the original page without that annoying browser refresh error.
What's strange though is that , somehow, php seems to be remembering what links he has visited previously - if he now clicks on a link he hasn't visited, he can go to it - but when he uses the BACK button in the browser the refresh error pops up.
If he goes to a page which he has already visited, and he has used the BACK textual hyperlink , he can now start using the BACK button.
So the sequence seems to be
1.login
2.click on link
3.click on textual BACK hyperlink
4.back to page 1 ,click on same link again
5. now you can use the browser back button.
Strange , eh?