如何使会话过期的网页 [英] how to make session expire of web pages

查看:104
本文介绍了如何使会话过期的网页的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使会话过期..
我希望当用户注销时..他应该输入用户名和密码才能进入网站..一旦用户注销,资源管理器的转发按钮将不起作用

how to make session expire of web pages..
i want that when the user log out .. he should enter user name and password to enter in to the website..forward button of explorer should not work once user logout

推荐答案

阅读 http://msdn.microsoft.com/zh-CN /library/ms178201%28v=vs.100%29.aspx [
Read http://msdn.microsoft.com/en-us/library/ms178201%28v=vs.100%29.aspx[^]:

报价:

允许用户注销,这时您应该调用HttpSessionState.Abandon方法.警告用户注销后关闭其浏览器.

Allow users to log out, at which point you should call theHttpSessionState.Abandon method. Warn the user to close his or her browser after logging out.


设置会话的默认过期时间.
set the expire time for the session to expire by default.


这篇关于如何使会话过期的网页的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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