Same Session in two browsers
-
I logged in to my account in codeproject. Then I took another instace of the browser. In that also I opened codeproject. Then that session is available in the newly opened browser. How is it made possible?
-
I logged in to my account in codeproject. Then I took another instace of the browser. In that also I opened codeproject. Then that session is available in the newly opened browser. How is it made possible?
When logged in, you might have checked "Remember me" check box. It uses a cookie to persist your login details.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
I logged in to my account in codeproject. Then I took another instace of the browser. In that also I opened codeproject. Then that session is available in the newly opened browser. How is it made possible?
-
Sessions are per PC access, not per Browser access. So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.
ChrisKo wrote:
So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.
I doubt. AFAIK, session will be shared if the new instance window is the child of instance who have a session, like popup windows etc. If you are taking a new instance by clicking on the browser executable file, I don't think that session will be shared.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
-
ChrisKo wrote:
So if you use a second instance of a browser on the same PC, sessions will ALWAYS be shared.
I doubt. AFAIK, session will be shared if the new instance window is the child of instance who have a session, like popup windows etc. If you are taking a new instance by clicking on the browser executable file, I don't think that session will be shared.
All C# applications should call Application.Quit(); in the beginning to avoid any .NET problems.- Unclyclopedia How to use google | Ask smart questions
yes, I will go with ChrisKo, Session will be shared between two browser window. note: - a new instance of IE will use a different session (from IE): good - a new tab in IE will use same session (from IE): bad - a new instance of firefox will use a different session (from IE): good - a new instance of firefox will use same session state (from firefox): bad. - a new tab in firexox will use same session state (from firefox): bad Conclusion: It uses same session state when it is same process !!! => NOT VERY COOL
Amit Agarwal