的SessionID还是Session.Abandon调用后同 [英] SessionID is still the same after Session.Abandon call
问题描述
我正在写一个基于会话ID ...
I'm writing some logging code that is based on SessionID...
然而,当我退出(调用Session.Abandon),并再次登录,会话ID还是一样。基本上我的电脑上所有的浏览器都有自己的会话ID附加,也不会因某种原因发生变化:/
However, when I log out (calling Session.Abandon), and log in once again, SessionID is still the same. Basically every browser on my PC has it's own session id "attached", and it won't change for some reason :/
任何想法是怎么回事?
我的会话配置是这样的:
My Session config looks like this:
<sessionState
mode="InProc"
timeout="1" />
谢谢你,帕维尔
推荐答案
检查这篇文章这也解释了在session.abandon过程
Check this article which explains the process on session.abandon
http://support.microsoft.com/kb/899918
从上面的链接采取 -
Taken from above link -
当你放弃会话,会话ID的Cookie不会从用户的浏览器中删除,因此,只要会话已被放弃,到同一个应用程序的任何新请求都将使用相同的会话ID,但意志有一个新的会话状态实例
"When you abandon a session, the session ID cookie is not removed from the browser of the user. Therefore, as soon as the session has been abandoned, any new requests to the same application will use the same session ID but will have a new session state instance"
这篇关于的SessionID还是Session.Abandon调用后同的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!