Re: Keeping sessions

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Jorge González wrote:
In a web server cluster, how do you do guys keep the php sessions? I mean, with Apache and mod_proxy_balanced you could have a cluster with apache backend webservers but If a user is logged into an php app then this user goes always to the same backend server and if that server goes down then the session is invalid.

How to deal with sessions?

Several options exist, but the most common is to store session data in a database that can be accessed by all of the web servers. Alternatives include using memcached but recently I read something that suggested that can be problematic.

I believe the cluster support in Zend Platform includes this functionality, so depending on your budget that may also be an option.

-Stut

--
http://stut.net/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux