问题描述
有没有人知道如何通过会话ID杀死会话?
-
高飞
Does anyone know how I can kill a session by session ID ?
--
Goofy
推荐答案
是的,这是正确的 - 这种行为是设计的 - 在你的
危险中劈开......!
Yes, that''s right - this behaviour is by design - hack about with it at your
peril...!
如上所述,关闭并重新打开应用程序
会生成一个* new *会话。作为一个* new *会话将有一个* new * SessionID
(好吧,在每个场景中并不总是这样,但它几乎总是如此
是的,肯定上面的代码将(几乎)永远不会返回True
因为新会话将(几乎)总是有一个新的SessionID ...?
As you correctly state above, closing and re-opening the application
generates a *new* session. As a *new* session will have a *new* SessionID
(OK, this isn''t absolutely always the case in every single scenario, but it
almost always is), surely the above code will (almost) never return True
because the new session will (almost) always have a new SessionID...?
Session对象的每个方法都在* current *
会话上运行 - 没有传递SessionID的机制......
这篇关于杀死和ASP.NET会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!