Jump to content

Deactivate Back button action


suma237

Recommended Posts

Help needed to  prevent others from from accessing the secured page by "back button" once i've successfuly logged out my session.  I need to set the page to ask the user to login again with the correct password when the user click the back button to access the previous secured page (the one i've logged out)

Link to comment
https://forums.phpfreaks.com/topic/56668-deactivate-back-button-action/
Share on other sites

The Answer Is You Can't

 

Theres One Method...

<SCRIPT LANGUAGE="JavaScript">

function goNewWin() {

//***Get what is below onto one line***

window.open("non59EC.htm",'TheNewpop','toolbar=1,location=1,directories=1,status=1,menubar=1,scrollbars=1,resizable=1'); 

//***Get what is above onto one line*** 

self.close()

}

</SCRIPT> 

<A HREF="javascript:goNewWin()">Click to go to a new page</A> 

 

 

 

It Opens A New Window And Then Close The Old One...Simple

 

 

There Are Plenty More Though... - Just Search Google

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.