mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Fix ticket #825. Related with session set to cache.
This commit is contained in:
parent
9e4ecba12a
commit
66de46cd5b
1 changed files with 6 additions and 0 deletions
|
@ -548,6 +548,12 @@ class Cache {
|
||||||
}
|
}
|
||||||
return array();
|
return array();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function __destruct() {
|
||||||
|
if (Configure::read('Session.save') == 'cache' && function_exists('session_write_close')) {
|
||||||
|
session_write_close();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in a new issue