Browse files

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

  • Loading branch information...
1 parent 9e4ecba commit 66de46cd5b8bc9d144b4389211585c2aa56fc512 @labianchin labianchin committed with markstory May 7, 2011
Showing with 6 additions and 0 deletions.
  1. +6 −0 cake/libs/cache.php
View
6 cake/libs/cache.php
@@ -548,6 +548,12 @@ function settings($name = null) {
}
return array();
}
+
+ function __destruct() {
+ if (Configure::read('Session.save') == 'cache' && function_exists('session_write_close')) {
+ session_write_close();
+ }
+ }
}
/**

0 comments on commit 66de46c

Please sign in to comment.