How to Disable Back Button on Signout

To Disable Back Button of Browser on User Signout put this script in Signout button’s Page .

window.history.forward(1);

And if you need this functionality in Firefox also than add the following line .

-<META HTTP-EQUIV=”PRAGMA” CONTENT=”NO-CACHE”>-
-<META HTTP-EQUIV=”Expires” content=”-1″>-
-<META HTTP-EQUIV=”CACHE-CONTROL” CONTENT=”NO-STORE”>-

Advertisement

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s