I wanted to open an asp.net application with a new session in the same browser but in a different tab.
Please let me know the solution if it is possible.
I wanted to open an asp.net application with a new session in the same
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The easiest solution is to configure session don’t use cookies for session identifier and open new window with client code. To implement such approach you need to set
cookielessatribute of thesessionelement in web.config file toUseUri. Be warned about available side-effects in this case (quote from the MSDN):After that you can open new tab with new session with javascript as below:
Or you can to implement custom SessionIDManager that not use cookies for session identifier: SessionIDManager Class