Skip to content
Permalink
Browse files

Fixing issue where ConnectionManager wasn't triggering session close,…

… causing issues with database sessions.
  • Loading branch information...
markstory committed Sep 6, 2010
1 parent 27ae7f1 commit d62ae2900a58ebd9b3f8f8e860f4fd0ad26fb585
Showing with 1 addition and 1 deletion.
  1. +1 −1 cake/libs/model/connection_manager.php
@@ -269,7 +269,7 @@ private function __connectionData($config) {
*
*/
function __destruct() {
if (Configure::read('Session.save') == 'database' && function_exists('session_write_close')) {
if (Configure::read('Session.defaults') == 'database' && function_exists('session_write_close')) {
session_write_close();
}
}

0 comments on commit d62ae29

Please sign in to comment.
You can’t perform that action at this time.