Hi guys,
Im in the middle of writing my own custom cms, and ive found a frustrating bug I cannot get rid of!
When the user logouts, they can use the back button the trace back through the pages theyve been on. However refreshing the page shows them as logged out and they cant see things again.
I've put this down to the backbutton using some sort of cach to remember pages? So it dosnt need to reload then?
I read about and found
<meta http-equiv="cache-control" content="no-cache"> <!-- tells browser not to cache -->
<meta http-equiv="expires" content="-1"> <!-- says that the cache expires 'now' -->
<meta http-equiv="pragma" content="no-cache"> <!-- says not to use cached stuff, if there is any -->
is supposed to stop the caching, but that hasnt solved the problem.
I also would have thought using header() to redirect the page would refresh it and it would have to reload when using back but it dosnt.
Ive next tried a ajax method of assigning a cookie on logout, and if its set using the unload event to force them back to the login page.
this works, but i feel its very messy/hack job and it only works in FF.
Any suggestions of where im going wrong/solutions?
Thanks in advance! =)