Boston Linux & Unix (BLU) Home | Calendar | Mail Lists | List Archives | Desktop SIG | Hardware Hacking SIG
Wiki | Flickr | PicasaWeb | Video | Maps & Directions | Installfests | Keysignings
Linux Cafe | Meeting Notes | Blog | Linux Links | Bling | About BLU

BLU Discuss list archive

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

Re: PHP web clusters and session information

 > On Wed, May 14, 2008 at 11:39 AM,  <[hidden email]> wrote: 
>> Are there any admins/architects that have multiple web servers using PHP 
>>  and are sharing sessions. 
>>  I have an open source project I've been trying to get going for a while 
>>  now and I'd like to solve the major issues for this type of deployment. 
>>  -- 
>>  This message has been scanned for viruses and 
>>  dangerous content by MailScanner, and is 
>>  believed to be clean. 
> Yes, you have two options.  Either use file sessions and store the 
> sessions on one of the servers and mount that directory via nfs to the 
> other servers.  But I recommend against this.  Or re-write your code 
> to store the sessions in the database, that way no matter what 
> database you hit, you'll be pulling the session data from the db. 
> There are tons of PHP examples out there of how to write your own db 
> sessions using session_set_save_handler 
>  Or 
> what I did was to use PEAR::Http_Session2 

BLU is a member of BostonUserGroups
BLU is a member of BostonUserGroups
We also thank MIT for the use of their facilities.

Valid HTML 4.01! Valid CSS!

Boston Linux & Unix /