Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 279
  • Last Modified:

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
0
Relegence
Asked:
Relegence
1 Solution

Featured Post

Veeam and MySQL: How to Perform Backup & Recovery

MySQL and the MariaDB variant are among the most used databases in Linux environments, and many critical applications support their data on them. Watch this recorded webinar to find out how Veeam Backup & Replication allows you to get consistent backups of MySQL databases.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now