我需要锁定管理页面 [英] I need to lock admin page

查看:63
本文介绍了我需要锁定管理页面的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





如果我离开管理页面(管理员登录后),我希望(管理页面过期而无法返回到那个页面),所以再次重定向到登录页面。是否可以不处理浏览器按钮,如后退按钮和刷新按钮?



谢谢,

解决方案

前段时间,当我遇到同样的问题时,在StackOverflow帖子之后帮了我很多....



它在多个项目中测试和实现(包括WebForms和MVC) )由我和他的作品一起工作。



请查看以下内容以获取完整的详细信息。如果用户离开界面,如何使会话过期.....





希望它会有所帮助。 :)

Hi,

if i visited away from admin page (after admin login), i want the (admin page to expire and not be able to return back to that page), so redirect to login page again. is that possible without dealing with browser buttons such as back button and refresh button?

Thanks,

解决方案

Sometime ago when i faced the same kind of issue, following StackOverflow post helped me alot....

Its tested and implemented in multiple projects(both WebForms and MVC) by me and works like a charm.

Please do have a look at the following for complete details.How to Expire a session if user leaves an interface.....


Hope it will help. :)


这篇关于我需要锁定管理页面的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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