I use 3 server through "Amazon balancer". On each server installed 2 (asp.net) web application (website, mobile site). "Balancer-Amazan"- so constituted that every 3 hours produces load transfer between servers, all session will be crash and creating a new (the users logs off) Advise the possible solutions to the problem. Thanks in advance.
Asked
Active
Viewed 126 times
1
-
Yes, I agree, but I'm sure it will help me, because I can not get the session state after the load transfer between servers. Session state stored on the servers, I think that I need to create an additional server that will store the session state. My approach is correct? – Max Jan 21 '13 at 17:29
-
*Yes, I agree, but I'm not sure it will help me. Is it possible to store cookies on Balancer? – Max Jan 22 '13 at 02:06
1 Answers
0
If you have SQL Server available you can store your session state in that:
You could even implement your own if SQL Server is not available:
http://msdn.microsoft.com/en-us/library/ms178588.aspx How to: Sample Session-State Store Provider
The only caveats are that you can only store serialisable objects in the store, i.e. you wouldn't, for example, be able to store a System.Xml.XmlDocument
object without turning it's representation into something than can be serialised, i.e. a string representing the XML.
I wrote up another answer that may be useful/provide further reading: