mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Reformatting code in CakeSession.
This commit is contained in:
parent
c0a19ced14
commit
1b063d6218
1 changed files with 16 additions and 12 deletions
|
@ -510,12 +510,14 @@ class CakeSession extends Object {
|
|||
ini_set('session.auto_start', 0);
|
||||
}
|
||||
}
|
||||
session_set_save_handler(array('CakeSession','__open'),
|
||||
array('CakeSession', '__close'),
|
||||
array('CakeSession', '__read'),
|
||||
array('CakeSession', '__write'),
|
||||
array('CakeSession', '__destroy'),
|
||||
array('CakeSession', '__gc'));
|
||||
session_set_save_handler(
|
||||
array('CakeSession','__open'),
|
||||
array('CakeSession', '__close'),
|
||||
array('CakeSession', '__read'),
|
||||
array('CakeSession', '__write'),
|
||||
array('CakeSession', '__destroy'),
|
||||
array('CakeSession', '__gc')
|
||||
);
|
||||
break;
|
||||
case 'php':
|
||||
if (empty($_SESSION)) {
|
||||
|
@ -542,12 +544,14 @@ class CakeSession extends Object {
|
|||
ini_set('session.cookie_path', $this->path);
|
||||
}
|
||||
}
|
||||
session_set_save_handler(array('CakeSession','__open'),
|
||||
array('CakeSession', '__close'),
|
||||
array('Cache', 'read'),
|
||||
array('Cache', 'write'),
|
||||
array('Cache', 'delete'),
|
||||
array('Cache', 'gc'));
|
||||
session_set_save_handler(
|
||||
array('CakeSession','__open'),
|
||||
array('CakeSession', '__close'),
|
||||
array('Cache', 'read'),
|
||||
array('Cache', 'write'),
|
||||
array('Cache', 'delete'),
|
||||
array('Cache', 'gc')
|
||||
);
|
||||
break;
|
||||
default:
|
||||
if (empty($_SESSION)) {
|
||||
|
|
Loading…
Reference in a new issue