Posted on: 11/22/2012 4:44:47 AM | Views : 435

Can anyone help me to solve, the browser back button problem?. When user selects any page from browser history list, i want to perform some server side processing. e.g. when you logout from application, and when you click on back button i dont want to show previous page which he has accessed. In my project, i am having some other pages which will requires refresh action to make page in consistent state.
To solve this problem i have tried to add cookie from code, and setting cookie value to false. And using Javascript i am checking that cookie value. If it false then do nothing else reload the page. And after that i am changing that cookie to true.But when i am changing the cookie value, i want to update the existing cookie, but it is inserting a new cookie.
This is the script to modify cookie which i am using
document.cookie= c_name+ "=" + c_value; //c_name- CookieName ; c_value-Cookie value; Is this right solution? Or is there any bet ...

Go to the complete details ...