Click here to Skip to main content
15,893,381 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Is possible to share a session objects between two sites?In both cases (yes/No) give the reason....
Posted

1 solution

I hope by "two sites" you did mean two different sites, not the same application deployed in Web farm or web garden or load balance.

If you really did mean about two different sites, the answer is "Yes"! I found it a few days ago, that uses an HttpModule to set the same application name for each Asp.net application. See Sharing Session Across Applications[^]. Didn't test it though.

Well, if you did mean about web farm/web garden/load-balanced deployment of same application, you should simply use session mode = "stateserver" or "sqlserver", so that, your session data is not stored in the application memory, rather, stored in out of process or SQL Sever respectively, that can be shared across all instances of the same application. See http://msdn.microsoft.com/en-us/library/ms972429.aspx[^] for details.
 
Share this answer
 
Comments
Manivannan Shan 19-Aug-10 3:36am    
Reason for my vote of 5
useful to me

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900