locked
Setting up in a load balanced environment RRS feed

  • Question

  • User533930588 posted

    Hi All,

    I have an ASP application running in load balanced environment. It is hosted in two servers and a one db. It has a load balancer that is replicates content between the two servers. I have scripts that are checking for updated content on both servers, running on the task scheduler. 
    I am running Windows Server 2008 R2 and SQL Datbase 2008
    The issue is that the users are being logged out after every five seconds upon logging in, other users cannot log into the system as so. 
    All the timeout and idle time in the web config and IIS7 are okay.
    I did a session test and the users are not loosing their session IDs.
    What could be the problem or what is logging the users out.
    Tuesday, August 27, 2013 4:04 AM

Answers

  • User1173053962 posted

    You must use session state in a sql database or in a state server. You can't use InProc session state on a load balancer environment unless you have the load balancer configured with session affinity.

    Here's an article that explains this very well in my opinion: http://www.hanselman.com/blog/LoadBalancingAndASPNET.aspx

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 27, 2013 5:27 AM

All replies

  • User1173053962 posted

    You must use session state in a sql database or in a state server. You can't use InProc session state on a load balancer environment unless you have the load balancer configured with session affinity.

    Here's an article that explains this very well in my opinion: http://www.hanselman.com/blog/LoadBalancingAndASPNET.aspx

    Regards

    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Tuesday, August 27, 2013 5:27 AM
  • User533930588 posted

    Thanks,  

    I was using inProc Session State. Let me make a few changes and get back to you.

    Rgds

    Tuesday, August 27, 2013 9:01 AM