我有一个会议的问题。我的网站正在执行一个登录用户控制台,至极每次在记录时间注册一个新用户。如果我尝试打开同一网页Explorer中2页,因为该方法首先询问用户是否已连接不注册失败两次。这种方法需要为参数的SessionID,是至极.NET提供我的问题是:在同一个浏览器(或在同一台计算机,本地主机)的SessionID它总是相同或它生成时
I have an issue with sessions. My web site is implementing a logged users console, wich register a new user each time it logs in. If I try to open 2 pages within the same web explorer, it fails because the method first ask if the user is already connected for not registering it twice. This method take as parameter the sessionID, wich is provided by My question is : In the same browser (or in the same computer, localhost), the sessionID it's always the same or it generates when ?
在此先感谢
推荐答案SessionID的将是相同的浏览器是一样的。结果在不同的浏览器(或不同的计算机),你会得到一个不同的SessionID。
SessionID will be the same for the same browser. On a different browser (or a different computer) you'll get a different SessionID.
这就是有点儿它是如何在互联网上,而不是仅仅用asp,因为Cookie的工作。
Thats kinda how it is all over the internet, not just with asp, because of the way Cookies work.
例如,你会发现,你不能登录到亚马逊或eBay在同一浏览器中使用不同的帐户。
For example you'll notice that you can't log into amazon or ebay using different accounts within the same browser.
更多推荐
与本地主机ASP.net会话问题
发布评论