Re: Session in two servers

From: Date: Sat, 02 Apr 2005 14:48:53 +0000
Subject: Re: Session in two servers
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212086@lists.php.net to get a copy of this message
* Srinadh Sannidhanam <ssnadh@gmail.com>: > I am using sessions in my web application which is installed in two > pawns. So the request is randomly picked by one of the two servers. I > am using files in php session but not database. My problem is, if the > first request go to one server and the session is created there, then > for the following request going to other server will not have session. > How can we manage the session simultaniously in two servers? Please > help me in this regard. You have two options: * share a networked partition between the two servers to which each will write/read for session information; change your php.ini file's session save path to that partition * read and write sessions to a shared container, such as a database -- Matthew Weier O'Phinney | WEBSITES: Webmaster and IT Specialist | http://www.garden.org National Gardening Association | http://www.kidsgardening.com 802-863-5251 x156 | http://nationalgardenmonth.org mailto:matthew@garden.org | http://vermontbotanical.org

« previous php.general (#212086) next »