Hi Team,
When user logged from the website, it is showing the login page, but when clicked on browser back button, it is taking back to the same page from where the user got logged out, how to acheive this
I have added this peice of code in my logout page, but didn't worked
- //$(document).ready(function () {
- // window.history.forward(1);
- // //function disableBack() { window.history.forward() }
- // //window.onload = disableBack();
- // //window.onpageshow = function (evt) { if (evt.persisted) disableBack() }
- //});
thanks for help in advance
Regards
Phani Kumar


Marius VasileRank #785 · 2.9K reputationPosted Jun 12, 2020, 12:50 AM EDT
Farhan AhmedRank #73 · 25K reputationPosted Jun 10, 2020, 6:57 PM EDT
Jignesh KumarRank #91 · 22.9K reputationPosted Jun 10, 2020, 8:01 PM EDT
Kavita J46 reputationPosted Jun 11, 2020, 11:21 PM EDT
Arvind KushwahaRank #685 · 3.5K reputationPosted Jun 12, 2020, 12:21 AM EDT