Skip to content
This repository has been archived by the owner on Jan 31, 2020. It is now read-only.

Commit

Permalink
Merge pull request zendframework/zendframework#1704 from protecinnova…
Browse files Browse the repository at this point in the history
…tions/remove-redundant-code

Remove Redundant Code from SessionManager's regenerate function
  • Loading branch information
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/SessionManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -257,11 +257,6 @@ public function setId($id)
*/
public function regenerateId($deleteOldSession = true)
{
if (!$this->sessionExists()) {
session_regenerate_id((bool) $deleteOldSession);
return $this;
}

session_regenerate_id((bool) $deleteOldSession);
return $this;
}
Expand Down

0 comments on commit f09df31

Please sign in to comment.