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
Rajat Mahajan 21Rajat Mahajan 21 

Browser Back Retaining Session in Salesforce

Hi All

I have deloped a site in Salesforce which is having certain visual force pages.

Issue is that in navigation a person should not be allowed to navigate back.
But i see that if i click the browser back button - the session is retained. Ideally the user should just log out or an error page should be shown

Can this be handled ?

Could you please help me as this is an urgent requirement

Thanks a lot in advance!
Vishnu VaishnavVishnu Vaishnav
are u tried on all browser ?
Rajat Mahajan 21Rajat Mahajan 21

Yes, in all browsers it does. When i click back (not only on site) it takes me to the previous page without any issue.
I need to restrict users to do this
Vishnu VaishnavVishnu Vaishnav
i think here is no way to do such thing , but i have an idea you can make wizard for all pages using one controller , in this case you can put some condition to check  all your stuffs.