Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Reformatting code in CakeSession.

  • Loading branch information...
commit 1b063d6218107d9b1812e71395cd79697d41aa3d 1 parent c0a19ce
@markstory markstory authored
Showing with 16 additions and 12 deletions.
  1. +16 −12 cake/libs/cake_session.php
View
28 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)) {
Please sign in to comment.
Something went wrong with that request. Please try again.