Reformatting code in CakeSession.

This commit is contained in:
mark_story 2009-09-01 23:25:03 -04:00
parent c0a19ced14
commit 1b063d6218

View file

@ -510,12 +510,14 @@ class CakeSession extends Object {
ini_set('session.auto_start', 0);
}
}
session_set_save_handler(array('CakeSession','__open'),
session_set_save_handler(
array('CakeSession','__open'),
array('CakeSession', '__close'),
array('CakeSession', '__read'),
array('CakeSession', '__write'),
array('CakeSession', '__destroy'),
array('CakeSession', '__gc'));
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'),
session_set_save_handler(
array('CakeSession','__open'),
array('CakeSession', '__close'),
array('Cache', 'read'),
array('Cache', 'write'),
array('Cache', 'delete'),
array('Cache', 'gc'));
array('Cache', 'gc')
);
break;
default:
if (empty($_SESSION)) {