Last post Jul 19, 2017 09:17 AM by AngelinaJolie
Jul 12, 2017 09:01 PM|mwinner|LINK
I'm logging out the user with:
ViewBag.Result = "You have succesfully logged out.";
However, when I hit the back button, it takes me to a page which they shouldn't have access to anymore.
I've seen solutions for MVC 5 (Session.Abandon), but nothing with Core.
Jul 12, 2017 09:19 PM|Dmitry Sikorsky|LINK
When you click back button, page is taken from browser cache, it has nothing to do with server side.
I think you might find interesting reading this links:
Jul 13, 2017 02:07 AM|AngelinaJolie|LINK
As Dmitry Sikor... said , it gets back to a page via browser ,you could try to F5 for refreshing page or click something for submitting ,they all will redirect to login page and can't get submit .So it will not effort your data.
Jul 13, 2017 04:57 PM|mwinner|LINK
This is a great idea. Do you know of anything for Core though? This is in Java. And I could only find for MVC 5 or lower.
Jul 13, 2017 05:00 PM|Dmitry Sikorsky|LINK
It is not so related to server-side language, so server-side lng is not so important, just use the idea.
Jul 19, 2017 09:17 AM|AngelinaJolie|LINK
Hi mwinner ,
If you don't want let user get back to cache page , I have a idea for this , we could have a think about how to disable the page get back ,
Here are two easier ways:
1: Add js as shown below at current page:
2:Here is the example ,it is to replace original url:
Logout (Back Disabled)