Skip to content
Permalink
Browse files

minor optimisation, refs comments on 81875cf

  • Loading branch information...
ceeram committed Jul 4, 2014
1 parent 1eccec0 commit a266a9493d9262d96ccedf70ba517e99f9e95724
Showing with 2 additions and 3 deletions.
  1. +2 −3 lib/Cake/Model/Datasource/CakeSession.php
@@ -714,11 +714,10 @@ protected static function _writeConfig() {
* @return void
*/
public static function renew() {
$id = session_id();
if (!$id) {
if (!session_id()) {
return;
}
if ($id || isset($_COOKIE[session_name()])) {
if (isset($_COOKIE[session_name()])) {
setcookie(Configure::read('Session.cookie'), '', time() - 42000, self::$path);
}
session_regenerate_id(true);

0 comments on commit a266a94

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