注销后如何禁止用户返回内容页面? [英] How do i disable user from going back to content page after logout?

查看:66
本文介绍了注销后如何禁止用户返回内容页面?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在asp.net中使用登录控件.我想禁止用户在注销后返回内容页面.

I am using login control in asp.net.I want to disable a userr from going back to content page after logout.

推荐答案

时间.您需要关闭缓存,以使页面不会从缓存中显示,但是即使正确,如果您的登录系统编写正确,那么从用户返回的页面请求新页面的任何尝试均应失败. .

This gets asked all the time. You need to turn off caching so that your page is not shown from the cache, but even if it is, if your login system is written properly, then any attempt to request a new page from the page the user goes back to, should fail.

Response.Cache.SetCacheability(HttpCacheability.NoCache);


这篇关于注销后如何禁止用户返回内容页面?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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