关闭用户会话 [英] Close User Session

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

问题描述

如何配置关闭会话的应用程序?如何在会话结束时使用

来结束会话?

解决方案

会话结束只是当a会话结束。要结束

用户的会话,我会使用Session.Abandon()。无论如何,它会在20分钟不活动后自动关闭会话,并且

在最后一个会话结束后卸载应用程序本身。

- -

希望这会有所帮助,

Mark Fitzpatrick

前微软FrontPage MVP 199?-2006


Laurahn < le ***** @ newsgroups.nospamwrote in message

news:e1 ************** @ TK2MSFTNGP03.phx.gbl ...


如何配置关闭会话的应用程序?如何在会话结束时使用

来结束会话?



3月14日,11:17下午,Laurahn < leme ... @ newsgroups.nospamwrote:


如何配置我的应用程序以关闭会话?如何在会话结束时使用

来结束会话?



配置超时或调用Session.Abandon()

blockquote>

谢谢Mark。


但是,我想知道我必须将哪些代码放入我的应用程序中。


我可以使用按钮吗?


我读过关于在Global.asax上添加一些代码


How can i configure my application for closing the session ? How can i use
the session end for closing the session ?

解决方案

Session end is only the event fired when a session is ended. To end the
user''s session you would use Session.Abandon() I believe. It will
automatically close the session after 20 minutes of inactivity anyways, and
unload the application itself after the last session is closed.
--
Hope this helps,
Mark Fitzpatrick
Former Microsoft FrontPage MVP 199?-2006

"Laurahn" <le*****@newsgroups.nospamwrote in message
news:e1**************@TK2MSFTNGP03.phx.gbl...

How can i configure my application for closing the session ? How can i use
the session end for closing the session ?



On Mar 14, 11:17 pm, "Laurahn" <leme...@newsgroups.nospamwrote:

How can i configure my application for closing the session ? How can i use
the session end for closing the session ?

Configure a timeout or call Session.Abandon()


Thanks Mark.

But, i want to know what code I have to put into my app for that hapends.

Can i use a button?

i''ve read about put some code on Global.asax


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

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