Good personal day
I have a problem exitem two test applications configured using asp.net mvc 5 in iis If that is logged on when a cookie is created with the current user data. The problem conciste the following when I open the browser and I have two tabs with both apps and
do logon with different users of the sessions falls strange because they are two different applications now have the user when the two applications with the same name one ends.
Code example: app01 – app02 test user – user test Here one session drops when I try to access.
Hello,
If you would like to have 2 sessions then you should use 2 open browsers, not 2 tabs. For the 2 tabs the session will be the same.
Regards
we had the same problem. well more like we had to be able to login as a client with a token without overriding our administrator session.
the only ‘easy’ way to fix this was using 2 hostnames.
example:
the app is running on example.mysite.com and when i click the login as this client button which uses the token it opens a new tab and goes to example2.mysite.com
2 sessions on the same app.
if the problem is overwriting of sessions on different apps on the same machine you might just want to change the machinekey
you can generate these here:
http://aspnetresources.com/tools/machinekey
generate 2 keys and add a key to each app web.config and your sessions should be split from each other
I gave different names for the cookies and ran what happens is that the cokkies is being replaced by another.