You are here: Re: Sessions in a load balanced setup « PHP Programming Language « IT news, forums, messages
Re: Sessions in a load balanced setup

Posted by Erwin Moller on 10/07/79 11:36

Balazs Wellisch wrote:

> Has anyone here implemented sessions in a load balanced environment using
> database storage as a custom session handler? I'd be interested to hear
> about your experiences. Upsides, downsides, bugs, troubles, security, etc.
>
> Thanks,
> Balazs

Hi,

Yes, I did, but not with loadbalancing.
The loadbalancingpart is however irrelevant if you use a database for
sessionstorage, since every session will contact the same database that
stores the sessions.
(If you plan to use more databases for sessionstorage, I give up. :P)

A good place to start is at ZEND:
http://www.zend.com/zend/spotlight/code-gallery-wade8.php

That page contains a good example, but without sessionlocking.
I wrote my own that does implement sessionlocking. It is not tested 100%,
but seems to work great so far. If you are interested I'll publish it on
the net, but just start with zend. :-)

Regards,
Erwin Moller

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация