用户注销时清除会话和浏览器的历史记录

用户注销时清除会话和浏览器的历史记录

问题描述:

你好朋友
我正在开发一个应用程序.在此应用程序中,我要在用户注销时清除所有缓存,浏览器历史记录和会话.请告诉我该怎么做.

Hello friends
I am developing an application. In this application I want to clear all cache, browser history, session when user logged out. Please tell me how to do that.

要清除会话,您需要做的只是注销事件中的Session.Clear().有关其他内容,请查看以下内容:注销后浏览器后退按钮问题 [^ ]
For clearing Session, all you need to do is Session.Clear() in the logout event. For other stuff, look at this: Browser back button issue after logout[^]