Friday, May 13, 2011

Using cache as session handler

I've found that if I would like to use some kind of cache as session
handler. I'm forced to use default cache (CakePHP 1.3.7). Because of
the session handler customization for cache is not good:

session_set_save_handler(
array('CakeSession','__open'),
array('CakeSession', '__close'),
array('Cache', 'read'),
array('Cache', 'write'),
array('Cache', 'delete'),
array('Cache', 'gc')
);

Have no information about the cache config will be used. That mean
only default config accepted.
It impacts other caches. If I want to use memcache for session handler
but I don't want to save the schema to memcache for instant.

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.


To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate