Skip to content

Commit

Permalink
Reformatting code in CakeSession.
Browse files Browse the repository at this point in the history
  • Loading branch information
markstory committed Sep 2, 2009
1 parent c0a19ce commit 1b063d6
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions cake/libs/cake_session.php
Expand Up @@ -510,12 +510,14 @@ function __initSession() {
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)) {
Expand All @@ -542,12 +544,14 @@ function __initSession() {
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)) {
Expand Down

0 comments on commit 1b063d6

Please sign in to comment.