Skip to content

Commit

Permalink
Conditionally renew.
Browse files Browse the repository at this point in the history
  • Loading branch information
euromark committed Jan 4, 2015
1 parent 001b811 commit 1e6fb0f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/Network/Session.php
Expand Up @@ -531,7 +531,9 @@ public function destroy()
public function clear($renew = false)
{
$_SESSION = [];
$this->renew();
if ($renew) {
$this->renew();
}
}

/**
Expand Down

0 comments on commit 1e6fb0f

Please sign in to comment.