Click here to Skip to main content
15,992,983 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more: (untagged)
I'm new to php and I'm building a site but the problem I'm facing is that I want to restrict the users to go back after logout. By this I mean to say that whenever user clicks on logout button it is redirecting to login page but even after logout if users click on back button it is redirecting the user to the last page they had visited which I don't want. I tried searching but didn't got any result.

Can anyone help me on how to resolve that problem and please if anyone is giving codes then please tell me where to put that code also..

Thank you..
Posted
Comments
Thanks7872 6-Jul-15 9:23am    
See this :

https://www.google.co.in/webhp?sourceid=chrome-instant&ion=1&espv=2&ie=UTF-8#q=back+button+after+logout+php

come back if none of these work for you.
Member 11316694 6-Jul-15 9:49am    
I've seen this all but the thing is either the code is not working or I don't know where to place the code, because of which I'm not able to figure out the perfect solution for this problem.

I found one solution on this site itself but the thing is they are telling to paste the code on Login page, Master page(server side), Logout page, Master Page(Client Side). But my whole site is written in PHP and neither I'm getting the logout page nor Master Page(both Client and Server side).

Could you please tell me how to resolve this problem.

The link of the site is:-- http://www.codeproject.com/Tips/549347/Browser-Back-Button-Issue-After-Logout

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900