I tried to set up sessions with memchaced and I am getting an error (plus
sessions do not seem to work).
I read :
https://github.com/cakephp/docs/blob/master/en/development/sessions.rst

It does not talk of session on memcached in specific but maybe adding it to
the doc would be good ;-)
I tested memcached communication with php and it is working.
Also with php sessions everything work well.

As specified in the doc I tried with

    Configure::write('Session', array(
    'defaults' => 'cache',
    'handler' => array(
        'config' => 'session'
    )

       Cache::config('session', array(
         'engine' => 'Memcache', //[required]
         'duration'=> 7200, //[optional]
         'probability'=> 100, //[optional]
          'prefix' => Inflector::slug(APP_DIR) . '_', //[optional]  prefix
every cache file with this string
          'servers' => array(
              '127.0.0.1:11211' // localhost, default port 11211
          ), //[optional]
          'persistent' => true, // [optional] set this to false for
non-persistent connections
          'compress' => false, // [optional] compress data in Memcache
(slower, but uses less memory)
     ));

But I am getting this error:
Fatal error: Access to undeclared static property: App::$_classMap in
/var/www/html/lib/Cake/Core/App.php on line 556

I tried to eliminate Cache::config('session', array( ... )); and leave
Configure::write('Session', array('defaults' => 'cache', ..);  , just in
case, but the error is still there.

I haven't update to RC3 yet.  I am actually waiting fro the final.

Is it a bug or I am doing something wrong?

Best,
   Chris

-- 
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
[email protected] For more options, visit this group at 
http://groups.google.com/group/cake-php

Reply via email to