function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Satish PrajapatSatish Prajapat 

how to manage session, if click on back tab or forward tab?

If click on the back button on Browser then the previous page is loaded which shoul not be happen. So, what should I do hence i can manage sesion.
Naveen Rahul 26Naveen Rahul 26
Hello Satish,
you can use javascript to capture back button event in browser.
once the you capture the event you can redirect the user to below url
https://instancename.salesforce.com/logout/
so the user will be logged out without any effort.
https://stackoverflow.com/questions/25806608/how-to-detect-browser-back-button-event-cross-browser

Thanks
D Naveen Rahul.