Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

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

  • Loading branch information...
commit 66de46cd5b8bc9d144b4389211585c2aa56fc512 1 parent 9e4ecba
@labianchin labianchin authored markstory committed
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();
+ }
+ }
}
/**
Please sign in to comment.
Something went wrong with that request. Please try again.