创建新的用户会话 [英] Creating new user session

查看:127
本文介绍了创建新的用户会话的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在不关闭当前会话的情况下创建新的用户会话。这是在我的asp应用程序第一个管理员登录和新会话启动,然后我需要启动另一个会话而不关闭当前会话是。它可能..?

How to create a new user session without closing the current session. That is in my asp app first admin log ins and a new session starts, then i need to start another session without closing current session is. it possible..?

推荐答案

简单地说,这是不可能的。



会话ID 保存在 cookie 中。

您不能同时在一个浏览器(新选项卡或新窗口 - 无关紧要)中为同一个应用程序创建两个不同的会话。
Simply, this is not possible.

Session ID is kept in a cookie.
You cannot have two different sessions for the same application in one browser (a new tab or a new window - doesn't matter) at the same time.


正常的行为是在浏览器选项卡之间共享会话。

要在每个选项卡中创建不同的唯一会话,可以按照您在注释中指出的以及使用cookieless选项提到的Tadit进行操作。但这种方法不是推荐的方法。



http://geekswithblogs.net/ranganh/archive/2009/04/17/asp.net-session-state-shared-between-ie-tabs-and-ie8。 aspx [ ^ ]
The normal behavior is to share the session across browser tabs.
To have different unique session created per tab can be done as you already indicated in the Comments as well as Tadit mentioned using cookieless option. But this approach not a recommended one.

http://geekswithblogs.net/ranganh/archive/2009/04/17/asp.net-session-state-shared-between-ie-tabs-and-ie8.aspx[^]


这篇关于创建新的用户会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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