Re: Sessio variables and Load Balancing

From: Date: Thu, 29 Jun 2000 20:43:37 +0000
Subject: Re: Sessio variables and Load Balancing
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-22994@lists.php.net to get a copy of this message
PHP stores it's session variables in the /tmp directory by default, but another directory can be specified in the php.ini file. I am guessing that if you mount an NFS volume between all the web servers and have them all point their session directory to the same place, the session will be maintained no matter what computer the user is at as long as the cookie comes from the domain of the server and not a specific computer. I'm thinking if the session cookie is set from .mysite.com and any computer in *.mysite.com stores it's session variables in the shared directory there shouldn't be a problem. You can avoid any cookie situation by explicitly passing the session variables and aviod cookies also. Michael News Sympatico wrote: > Hi. > > Has anyone been using session variables on a load balancing environment? > I was wondering how PHP managed it's session variables and if it had > problems in that sort of settings. > > Thanks > > Yanik Proulx > yanik@k-os.com > Technical Leader > http://www.goalnetwork.com > http://www.k-os.com > > -- > PHP Development Mailing List <http://www.php.net/> > To unsubscribe, e-mail: php-dev-unsubscribe@lists.php.net > For additional commands, e-mail: php-dev-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.dev (#22994) next »