Skip to content

Commit

Permalink
Avoiding a call to session_regenerate_id() when there is no id
Browse files Browse the repository at this point in the history
Fixes #4312
  • Loading branch information
lorenzo committed Aug 20, 2014
1 parent 2d94b3d commit 9af768b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Network/Session.php
Expand Up @@ -527,7 +527,10 @@ public function renew() {
$params['path'], $params['domain'],
$params['secure'], $params['httponly']
);
session_regenerate_id(true);

if (session_id()) {
session_regenerate_id(true);
}
}

/**
Expand Down

0 comments on commit 9af768b

Please sign in to comment.