Link to home
Start Free TrialLog in
Avatar of Relegence
RelegenceFlag for Israel

asked on

Sessions problem when working on a load balancer, using AJAX

Hello,
I am developing a C# ASP.NET application. I am using AJAX with a timer to refresh the data every couple of seconds.
I am performing searches on queries. When working on my localhost, everything looks good.
When working on a load balancer that addresses 2 servers, there is a problem.
Sometimes, when searching a couple of queries, i see results from my previous search.
When looking at the traces of the load balancer servers i can see that 1 server holds the current query in the session but the other server holds the previous query.
The result is that the user of my application gets the wrong data.

What could be the reason for that?

Thank you
ASKER CERTIFIED SOLUTION
Avatar of gocemi
gocemi
Flag of North Macedonia image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial