DON'T WANT TO DISABLE BACK BUTTON FUNCTIONALITY WHEN USER ALREADY LOGGED IN.
i want my LOGGED IN user to use browser back button as normal. But once he choosed to log out, he is not allow to see any of his/others contents by pressing Back.
how to do this?
right now i have written this code.
<BODY onload="history.go(+1)" >
but by writing this, back button is not working even if user logged in.
It's not a good idea to disable back button.
1. Maybe you should place onload event on body only when user is logged in?
2. On logout button click open new window and close current window. Button will not work.