Re: Memcache session handler
| From: | Glenn Richmond | Date: | Tue, 24 Oct 2006 02:00:12 +0000 |
| Subject: | Re: Memcache session handler | ||
| References: | 1 2 3 | Groups: | php.pecl.dev |
| Request: | Send a blank email to pecl-dev+get-4284@lists.php.net to get a copy of this message | ||
Hi All,
These are the ini options that I've used:
session.save_handler="memcache"
session.memcache_server_1="xxx:xxx:xxx:xxx:11211"
session.memcache_server_2="xxx:xxx:xxx:xxx:11211"
The memcache_server_2 setting is optional, but is there for a server
backup. I think that it's a good idea to keep these options separate for
clarity.
Glenn.
Wez Furlong wrote:
> session.save_path can be used for this; I dont see any need to add
> more ini options. You can use ini_set() to change this at runtime;
> people are used to doing that already with their sessions.
>
> --Wez.
>
> On 10/23/06, Mikael Johansson <mikael@synd.info> wrote:
>> * The extension needs to know the address of the servers in order to
>> connect, so how do you start the session?
>>
>> 1) From php.ini using something like
>>
>> memcache.session_storage =
>> "tcp://node01.example.com:11211?weight=2,tcp://node02.example.com:11211"
>> session.save_handler = memcache