[英]ASP.NET Session
ASP.Net会话对于不同的浏览器具有相同的价值。...为什么会这样?
如果通过不同的浏览器表示同一台计算机上的IE的两个实例,则答案是会话基于cookie(例如,会话ID存储在cookie中),并且同一浏览器的多个实例共享cookie。
A session only lives until the browser is closed. 会话仅在关闭浏览器之前有效。
So you either 所以你要么
set the value to be the same in differnt browsers 在不同的浏览器中将该值设置为相同
you are not using sessions 您没有使用会话
Retreive the session using an URL or cookie. 使用URL或cookie检索会话。
If you start the same browser twice, the second instance might use the same cookies as the first - so you get the same session. 如果您两次启动相同的浏览器,则第二个实例可能使用与第一个实例相同的cookie-因此您将获得相同的会话。 This is very browser dependent.
这非常依赖于浏览器。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.