Search code examples
c#asp.net.netsession-state

Can we use stateserver sessions across multiple browsers?


Once again the confusion related to MSDN documentation with respect to Session Management.

Please follow the link specified above if image is not visible

I went thru the Session Management Article in MSDN, and found that it is stated in the article that - "we can Store session-specific data on the server for use across multiple browser or client-device requests within the same session."

Can anybody tell me how is it possible. for e.g. if you have two browsers i.e. i)Firefox and ii) Internet Explorer (IE).

Now, If I am running asp.net application (which uses stateserver to manage sessions) in Firefox. And again the same application I ran through IE (without closing firefox session). Is that means that both the browser will share the same session? I guess "NO". Both the browsers will run with their own sessions, which is different from each other.

Secondly, I found that the two statements in the article are contradictory with each other. It says that - "Session state is similar to application state, except that it is scoped to the current browser session" and on other hand it says that - "It Store session-specific data on the server for use across multiple browser or client-device requests within the same session"

So, if its scope is limited to the current browser session, then how it can be use across multiple browsers?


Solution

  • It is a little confusing, but I think you're misinterpreting the statement. They are referring to multiple requests, not browsers or client-devices.

    Session is indeed scoped to the current browser session, persisted with cookies or query strings.