与本地主机ASP.net会话问题

编程入门 行业动态 更新时间:2024-10-09 06:28:15
本文介绍了与本地主机ASP会话问题的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

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

本文发布于:2023-11-26 21:36:12,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1635280.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:与本   主机   net   ASP

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!