asp.net - How to differ session in different tabs? -


I wanted to open an ASP.NET application with a new session in the same browser but if possible in a separate tab So please tell me the solution.

The easiest way to configure sessions is to use cookies for session identifiers and with the client code Open a new window. To implement this kind of approach, you have to set the cookieless in the web code to session element for UseUri . In this case, warn about the available side effects (quotes from MSDN):

Note When you configure an AJAX-enabled ASP.NET web site, So use only the default value of UseCookies for the CookOoles feature is not supported by the ASP.NET client client script libraries using settings that use encoded cookies in the URL.

You can then open a new session with a new session with Javascript:

   & Lt; Script type = "text / javascript" & gt; Function openNewTab () {window.open (location.protocol + "//" + location.host + "/Default.aspx", "_blank"); } & Lt; / Script & gt; & Lt; / Form & gt;   

Or you can apply custom sessions to IDManager who do not use cookies for session identifiers:

Comments