Jump to content

[SOLVED] Restrict going backwards


jandrews3

Recommended Posts

I have a logout button on my website for my students which clears (unset) the variable $_SESSION['student'] and then sends the student to the home page (which doesn't require a password). I want to prevent another student from sitting down to the computer and clicking on the back button to see information the previous student had been doing. Is this possible?

 

At this point, the first student is properly logged out. If another student comes and clicks back a few times but then clicks on a link, he is kicked out (because the session variable has been unset). BUT he can still view the data on the pages just prior to the previous student's logout. Boy I hope I haven't been confusing.

Link to comment
https://forums.phpfreaks.com/topic/171411-solved-restrict-going-backwards/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.