Re: Sessio variables and Load Balancing

From: Date: Fri, 30 Jun 2000 00:30:42 +0000
Subject: Re: Sessio variables and Load Balancing
References: 1 2  Groups: php.dev 
Request: Send a blank email to php-dev+get-22996@lists.php.net to get a copy of this message
But we all know how unreliable and slow NFS is on linux and probably other platforms, a better solution is to use your database of choice and store cookies there. An article on phpbuilder.com (http://phpbuilder.com/columns/ying20000602.php3) highlights how to write custom session handlers to do just that. not only would this be fast and effecient, it would allow multiple webserver to pull sessions from a common database. Joshua ----- Original Message ----- From: "Michael Stearne" <mstearne@entermix.com> To: "News Sympatico" <yanik@bigfoot.com> Cc: <php-dev@lists.php.net> Sent: Thursday, June 29, 2000 3:43 PM Subject: Re: [PHP-DEV] Sessio variables and Load Balancing > 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 > > > > > -- > 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 (#22996) next »