结束会话 [英] Ending a session

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

问题描述

是否可以从另一个会话b结束会话a,如果我知道

会话ID来自?

Is it possible to end a session a from another session b, if I know the
SessionID from a?

推荐答案

Cecil Westerhof写道:
Cecil Westerhof wrote:
是否有可能从另一个会话b结束会话a,如果我知道来自一个?的会话ID?
Is it possible to end a session a from another session b, if I know
the SessionID from a?




No.


Bob Barrows

-

Microsoft MVP - ASP / ASP.NET

请回复新闻组。这个电子邮件帐户是我的垃圾邮件陷阱所以我

不经常检查它。如果您必须离线回复,请删除

无垃圾邮件



No.

Bob Barrows
--
Microsoft MVP - ASP/ASP.NET
Please reply to the newsgroup. This email account is my spam trap so I
don''t check it very often. If you must reply off-line, then remove the
"NO SPAM"


不容易。全面了解可能会提供更好的建议。为什么

你想这样做?


例如,一个页面可以检查每个请求是否在禁止中。列表

然后终止。如果你有一个非常有效的理由结束

会话,IMO是值得的。如果它是为了维护,最好提前警告用户

并禁用该网站。


Patrice


-


" Cecil Westerhof" <所以***** @ microsoft.com> écritdansle message de

news:uS ************** @ TK2MSFTNGP14.phx.gbl ...
Not easily. Having the whole picture may yield to better suggestions. Why do
you want to do that ?

For example a page could check on each request if it''s in the "banned" list
and terminate then. IMO it''s worth if you have a very valid reason to end
session. If it''s for maintenance, it would be likely better to warn users
beforehand and to disable the site.

Patrice

--

"Cecil Westerhof" <so*****@microsoft.com> a écrit dans le message de
news:uS**************@TK2MSFTNGP14.phx.gbl...
是吗如果我从一个?
Is it possible to end a session a from another session b, if I know the
SessionID from a?



" Patrice"中知道
会话ID,那么可以从另一个会话b结束会话a <无**** @ nowhere.com>在消息中写道

news:un ************** @ TK2MSFTNGP15.phx.gbl ...
"Patrice" <no****@nowhere.com> wrote in message
news:un**************@TK2MSFTNGP15.phx.gbl...
不容易。全面了解可能会提供更好的建议。为什么
你想这样做?
Not easily. Having the whole picture may yield to better suggestions. Why
do
you want to do that ?




因为构建某个应用程序的方式,不允许用户

一次登录更多。问题是,当浏览器关闭(或

崩溃)时,会话将不会终止。然后用户可以不再登录

直到会话终止。因此,我们希望

给管理员终止会话的可能性。



Because the way a certain application is built, an user is not allowed to
login more as once. The problem is that when a browser is closed (or
crashes), the session will not be terminated. The user can then not login
anymore untill the session terminates. Because of this, we would like to
give an admin the possibility to terminate a session.


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

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