Fix ticket #825. Related with session set to cache.

This commit is contained in:
Luís Armando 2011-05-07 12:46:31 +02:00 committed by mark_story
parent 9e4ecba12a
commit 66de46cd5b

View file

@ -548,6 +548,12 @@ class Cache {
}
return array();
}
function __destruct() {
if (Configure::read('Session.save') == 'cache' && function_exists('session_write_close')) {
session_write_close();
}
}
}
/**