How to prevent from navigating to a page after reaching Login page using back button?

Hi sir,

I have created 2 pages, 1) Lo gin Page 2)Page with link to open pdf files

When i lo-gin,it takes me to 2nd page where there are buttons that opens pdf files in new window.The problem is when i goback to user login page using back button and agin click browser forward button,the 2nd page session gets expired but on next click on forward button,the pdf document opens..But i dont want it to happen.Instead,it should again ask for login.

I am using html,php,javascript..

Please provide me a better code to attain desired soulution

Thank you

View Answers









Related Tutorials/Questions & Answers:
Advertisements