会话期满 [英] session expire

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

问题描述

您好,我在点击链接时使用的是我写的链接按钮:


hii all i am using linkbutton on click of which i have written:


Session.Abandon();
       Response.Redirect("../index.aspx");



但是会话不会过期....为什么



but the session does not expires....why

推荐答案

This is from the documentation[^]:
When the Abandon method is called, the current Session object is queued for deletion but is not actually deleted until all of the script commands on the current page have been processed. This means that you can access variables stored in the Session object on the same page as the call to the Abandon method but not in any subsequent Web pages.


Regards
Espen Harlinn


缓存问题.
也可以查看此提示/技巧.

注销(浏览器会话)后浏览器后退按钮的问题(会话问题) [ ^ ]
Cache issue.
Have a look at this Tip/Trick too.

Browser back button issue after logout(Session issue)[^]


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

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