用户注销后删除缓存 [英] Remove cache after the user signs out

查看:144
本文介绍了用户注销后删除缓存的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述


我有一个ASP.NET网站,用户具有登录/注销功能.有些页面只有在用户登录后才能查看.现在,在用户注销后,我注意到用户仍然可以通过按后退"按钮来查看此受限页面.我想创建该功能,以便一旦用户注销,该页面就将不可见.该怎么办?

P.S我没有在ASP.NET中使用内置的Login控件

Hi,
I have an ASP.NET website in which the user has the Login/Logout functionality. There are some pages which are viewable only if the user is logged in. Now, after the user signs out, I noticed that the user is still able to see this restricted page on pressing the back button. I want to create the functionality such that once the user signs out, the page should not be viewable. How can that be done?

P.S I am not using built in Login controls in ASP.NET

推荐答案

看看Sandeep的技巧

注销后浏览器后退按钮问题 [
Have a look at Sandeep''s tip

Browser back button issue after logout[^]


这篇关于用户注销后删除缓存的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆