I need to open a second browser window or tab, but it must have a different session ID.
Opening the new browser window from an ASP.NET page is easy, but then it shares the same cookie and thus session ID with the original.
How can I do this?
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.
This is a browser limitation – browsers instances share cookie data (including session cookie) when they are running, so this is not possible with your standard browser.
If you have an option of running different browsers (IE and Firefox, for instance) they do not share cookies and will have different sessions.
Edit:
If you have control over IIS host headers and DNS in your environment, you may be able to use many different domain names – one per session.
The browser will treat each domain name as a different server and different cookies (and therefore sessions) will be created.