question about using memcached for shared web hosting
krystian at mtiglobal.com
Tue Dec 18 05:07:14 UTC 2007
> Hi Hans,
> You can specify the following directives in your php.ini:
> session.save_handler = memcache
> session.save_path = "http://localhost:11211"
> To test if your current version of php/pecl-memcached supports session
> do a var_dump(MEMCACHE_HAVE_SESSION), if 1 then you are good to go,
> otherwise you may need to upgrade php/pecl-memcached.
> Krystian wrote:
>> I'm looking for cache software which I can use in Load Balancing web
>> servers (especially php sessions).
>> I'd like to know if it is possible to use memcached in transparent
>> way. So users don't need rewrite code, just server create sessions in
>> memcached. Also I'd like to know if it is possible to create
>> different caches per user (for security each user gets his own
>> session path).
Thanks for answer, but still I have doubt.
For security my present config is:
So customers cannot access each other sessions.
Should I direct all clients to one memcache (localhost:11211)? Is it safe?
Or should I run memcache daemons on few ports and each client gets his
own port (client1=localhost:11211, client2=localhost: 11212 etc) ?
More information about the memcached