Jump to content

Closing a browser window


stevepatd

Recommended Posts

I have a web-based school registration program.  One of the schools using it would like to let parents go to the computer lab on registration day and use their computers to register their child.  This program collects some personal information.  When the parent is done I would like to have a secure "log-off" script that prevents the next user from hitting the back key to reveal the previous information.

 

I've explored some javascript that closes a browser but it only works for IE, Safari, and early versions of Firefox.  Newer versions of Firefox purposely don't allow this (unless the page was opened with javascript which I now nothing about).  I don't know javascript, I'd rather do something with php/html if possible.

 

So, any brilliant minds out there have an idea?  I hate taking away the back key feature (if possible) as that really restricts the users.  Can I clear the browsing history so if I take them back to the log-in page and clear the history they have nothing to go back to?

 

How do I make a secure log-off?

 

Thanks,

Steve

 

 

Link to comment
https://forums.phpfreaks.com/topic/120963-closing-a-browser-window/
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.