Hello All,
I have 2 Web applications in the same IIS with the virtual directory structure below:
http://www.mydomain.co m/site1
http://www.mydomain.co m/site2
both site1 an site2 are using form authentication and creating the token further adding in cookie as below,
FormsAuthentica tion.Initialize ();
FormsAuthentica tionTicket ticket = new FormsAuthentica tionTicket(1,us ername,DateTime .Now,DateTime.N ow.AddMinutes(2 0),rememberMeSe t,globalID,Form sAuthentication .FormsCookiePat h);
// Encrypt the ticket.
String hash = FormsAuthentica tion.Encrypt(ti cket);
//Create the authentication cookie
HttpCookie cookie = new HttpCookie(Form sAuthentication .FormsCookieNam e, hash);
My problem is when I'm logging in to Both site1 and site2 then these two are not running simultaneously on single browser using different tab for same user name.
one is being logged out when logging to the other application and vice verse.
Has anyone run in to such problem..
What wrong thing I'm doing here..Pls help.
Thanks in advance!!!
I have 2 Web applications in the same IIS with the virtual directory structure below:
http://www.mydomain.co m/site1
http://www.mydomain.co m/site2
both site1 an site2 are using form authentication and creating the token further adding in cookie as below,
FormsAuthentica tion.Initialize ();
FormsAuthentica tionTicket ticket = new FormsAuthentica tionTicket(1,us ername,DateTime .Now,DateTime.N ow.AddMinutes(2 0),rememberMeSe t,globalID,Form sAuthentication .FormsCookiePat h);
// Encrypt the ticket.
String hash = FormsAuthentica tion.Encrypt(ti cket);
//Create the authentication cookie
HttpCookie cookie = new HttpCookie(Form sAuthentication .FormsCookieNam e, hash);
My problem is when I'm logging in to Both site1 and site2 then these two are not running simultaneously on single browser using different tab for same user name.
one is being logged out when logging to the other application and vice verse.
Has anyone run in to such problem..
What wrong thing I'm doing here..Pls help.
Thanks in advance!!!