mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
parent
622d2f04f9
commit
efadf3dcd3
1 changed files with 3 additions and 2 deletions
|
@ -421,9 +421,10 @@ class CakeSession {
|
|||
* @return void
|
||||
*/
|
||||
public static function destroy() {
|
||||
if (self::started()) {
|
||||
session_destroy();
|
||||
if (!self::started()) {
|
||||
self::start();
|
||||
}
|
||||
session_destroy();
|
||||
self::clear();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue