Re: PHP session replication

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

 



On 17 March 2011 16:04, Stuart Dallas <stuart@xxxxxxxx> wrote:
> On Thursday, 17 March 2011 at 16:02, Richard Quadling wrote:
> On 17 March 2011 15:30, Stuart Dallas <stuart@xxxxxxxx> wrote:
>> > On Thursday, 17 March 2011 at 15:29, Stuart Dallas wrote:
>> > On Thursday, 17 March 2011 at 15:22, Richard Quadling wrote:
>> > > On 17 March 2011 15:18, Stuart Dallas <stuart@xxxxxxxx> wrote:
>> > > > > On Thursday, 17 March 2011 at 15:15, Nathan Nobbe wrote:
>> > > > > On Wed, Mar 16, 2011 at 10:06 PM, Alessandro Ferrucci <
>> > > > > > alessandroferrucci@xxxxxxxxx> wrote:
>> > > > > >
>> > > > > > > Hello,
>> > > > > > > I'm curious, what are the most popular methods to perform session
>> > > > > > > replication across http servers in PHP?
>> > > > > > > I've read about repcache(memcached module) and Mysql.
>> > > > > > > anything else? is there some mod_php_session_replication httpd module?
>> > > > > > > thanks
>> > > > > >
>> > > > > > I recently posted a question to the memcached mailing list about this. I
>> > > > > > would suggest looking at membase if you're interested in that route.
>> > > > > >
>> > > > > > Pragmatically speaking though, I'd say go for database backed sessions until
>> > > > > > they actually become a performance bottleneck.
>> > > > > >
>> > > > > > Here's the post from google groups if you're interested:
>> > > > > >
>> > > > > > http://groups.google.com/group/memcached/browse_thread/thread/7ed750db888e6b1b?pli=1
>> > > > >
>> > > > > This may also be of interest: http://stut.net/2008/07/26/sessionless-sessions-2/
>> > > > > -Stuart
>> > > > >
>> > > > > --
>> > > > > Stuart Dallas
>> > > > > 3ft9 Ltd
>> > > > > http://3ft9.com/
>> > > > >
>> > > > >
>> > > > >
>> > > > > --
>> > > > > PHP General Mailing List (http://www.php.net/)
>> > > > > To unsubscribe, visit: http://www.php.net/unsub.php
>> > > >
>> > > > Stuart, that's just cruel.
>> > > >
>> > > > Stut.net
>> > > > Ramblings of a random software engineer
>> > > > Error 404 - Not Found
>> > > > Apologies, but we were unable to find what you were looking for.
>> > > > Perhaps searching will help.
>> > > >
>> > > > Very much a Friday comment though. Along the lines of LMGTFY.
>> >
>> > Works fine from here, but I should probably add a search box to the site given that 404 message :)
>> >
>> > -Stuart
>> >
>> > --
>> > Stuart Dallas
>> > 3ft9 Ltd
>> > http://3ft9.com/
>>
>> GMail added the -Stuart on the next line onto the URL.
>
> Indeed. I've put in a permanent redirect for that specific URL.
>
>
> -Stuart
>
> --
> Stuart Dallas
> 3ft9 Ltd
> http://3ft9.com/
>
>
>
>

I think ASP does something similar to what you've suggested.

I don't know if you've considered this, but if you use
session_set_save_handler() to wrap up your code, you the rest of the
code can still use $_SESSION without having to do anything extra.

Which is the main reason for session_set_save_handler().

Though you would have to make sure your code didn't output in dribs
and drabs, essentially the last line in the code is the output as the
cookie writing would have to be done before any output.

Or use output buffering ...


-- 
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux