+ Start a Discussion
wixxeywixxey 

Website Login problem

Hello,

 

I have developed a website in salesforce the problem i am facing is  When i log out i clear the cookies. but when i press the back button after logging out the session gets restored. How can i avoid the session restore or stop the back button to get back into site, any suggestion regarding this will be highly appreciated.

Best Answer chosen by Admin (Salesforce Developers) 
Bhawani SharmaBhawani Sharma
That's why it is not working. Please use logout function. It will remove cookies and setting from your browser.

All Answers

Bhawani SharmaBhawani Sharma
Are you using site.logout() function to get logged out from site?
wixxeywixxey
Nope .. I am using the manual delete cookies to clear the cookies using the
javascript
Bhawani SharmaBhawani Sharma
That's why it is not working. Please use logout function. It will remove cookies and setting from your browser.
This was selected as the best answer
wixxeywixxey
thanx for the rply bhawani