Skip to content

Commit

Permalink
Removed compatibility code for PHP < 5.4
Browse files Browse the repository at this point in the history
  • Loading branch information
DaSourcerer committed Dec 11, 2013
1 parent eab7e4a commit 97645bc
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions framework/yii/web/Session.php
Original file line number Diff line number Diff line change
Expand Up @@ -179,13 +179,7 @@ public function destroy()
*/
public function getIsActive()
{
if (function_exists('session_status')) {
// available in PHP 5.4.0+
return session_status() == PHP_SESSION_ACTIVE;
} else {
// this is not very reliable
return $this->_opened && session_id() !== '';
}
return session_status() == PHP_SESSION_ACTIVE;
}

/**
Expand Down

0 comments on commit 97645bc

Please sign in to comment.