Skip to content
Permalink
Browse files

Reformatting code in CakeSession.

  • Loading branch information...
markstory committed Sep 2, 2009
1 parent c0a19ce commit 1b063d6218107d9b1812e71395cd79697d41aa3d
Showing with 16 additions and 12 deletions.
  1. +16 −12 cake/libs/cake_session.php
@@ -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)) {
@@ -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)) {

0 comments on commit 1b063d6

Please sign in to comment.
You can’t perform that action at this time.