When using a State server for session, are sessions still appDomain specific? So for example, I have two different IIS applications(virtual directories) on a web server, and they both point to one state server for session. The session guid from the cookie will be the same across requests from both applications, so will the same session be accessible across both of these applications? Thanks.
A:
The issue is not the appDomain but the application name (in the web.config). As long as the application name is the same you should be able to share session state.
For different application names check here.
ntziolis
2010-04-25 20:16:38
I think you make an error - even if you have the same application name, that you mix up everything, then the program when get from one app to the other ask for the session cookie that is not found on the second one and create again a new session for the same user under the same database (if they have the same app name). Bad practice to have the same application name for different applications.
Aristos
2010-04-26 07:08:50
@Aristos - You are right, but I assumed of course that the session cookie would also have been unified, otherwise it doesn't make sense to unify session storage. And yes this is not pretty, but its the only way I know of without having to change the underlying providers. If this has changed please let us know.
ntziolis
2010-04-26 12:46:17
@ntziolis - ok I accept your argument. Now there is one think that I do not know (and I wish to learn), how you can unified the cookie across 2 different web site.
Aristos
2010-04-26 13:22:50