Hello sir,
I have done same configuration but still now it is not storing session data in database.
This code is for my core.php
<?php Configure::write('debug', 2); Configure::write('Error', array( 'handler' => 'ErrorHandler::handleError', 'level' => E_ALL & ~E_DEPRECATED, 'trace' => true )); Configure::write('Exception', array( 'handler' => 'ErrorHandler::handleException', 'renderer' => 'ExceptionRenderer', 'log' => true )); Configure::write('App.encoding', 'UTF-8'); Configure::write('Session', array('defaults' => 'database')); Configure::write('Acl.classname', 'DbAcl'); Configure::write('Acl.database', 'default'); App::uses('MemcachedEngine', 'Memcached.Lib/Cache/Engine'); $engine = 'Memcached'; if (extension_loaded('apc') && function_exists('apc_dec') && (php_sapi_name() !== 'cli' || ini_get('apc.enable_cli'))) { $engine = 'Apc'; } $duration = '+999 days'; Cache::config('_cake_core_', array( 'engine' => $engine, 'prefix' => $prefix . 'cake_core_school_', 'path' => CACHE . 'persistent' . DS, //'serialize' => ($engine === 'File'), 'duration' => $duration, 'lock' => true, # !!! )); Cache::config('_cake_model_', array( 'engine' => $engine, 'prefix' => $prefix . 'cake_model_school_', 'path' => CACHE . 'models' . DS, //'serialize' => ($engine === 'File'), 'duration' => $duration )); Cache::config('default', array('engine' => 'Memcached')); Cache::config('default', array( 'engine' => 'Memcached', //[required] 'duration' => 3600, //[optional] 'probability' => 100, //[optional] 'prefix' => 'cake_school_', //[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) )); And i have done for appcontroller same configuration. but still now not working.