Skip to content

Commit

Permalink
Fixing issue where ConnectionManager wasn't triggering session close,…
Browse files Browse the repository at this point in the history
… causing issues with database sessions.
  • Loading branch information
markstory committed Sep 6, 2010
1 parent 27ae7f1 commit d62ae29
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cake/libs/model/connection_manager.php
Expand Up @@ -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();
}
}
Expand Down

0 comments on commit d62ae29

Please sign in to comment.