与本地主机ASP.net会话问题 [英] ASP.net session issue with localhost

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

问题描述

我有一个会议的问题。我的网站正在执行一个登录用户控制台,至极每次在记录时间注册一个新用户。如果我尝试打开同一网页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 .net 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.net,因为Cookie的工作。

Thats kinda how it is all over the internet, not just with asp.net, 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会话问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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