Search code examples
phpwebserver

How To maintain Session over Load Balancer?


The Project i am working on is based on multiple server which uses load balancer. The Problem is i can not maintain PHP session through out all servers.What is the best way to manage session over Load Balancer ... ?


Solution

  • i can think of these two methods for this purpose.

    1. Use a clustered web application server where the session are available for all the servers
    2. Use IP level information to maintain affinity between a user and a server