Skip to content

Commit

Permalink
old session remove issue fix
Browse files Browse the repository at this point in the history
  • Loading branch information
shamsbd71 committed May 24, 2016
1 parent 8c641bf commit a025002
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/com_digicom/site/helpers/session.php
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,7 @@ public function __construct ()
if(!$this->oldsidscleaned && !$sid){
$lifetime = $config->get( 'lifetime', 15); //MINUTE
$sql = "DELETE FROM `#__digicom_session`
WHERE `create_time` < UNIX_TIMESTAMP(DATE_SUB(NOW(), INTERVAL $lifetime MINUTE))
and `uid` = '0'";
WHERE `create_time` <= DATE_SUB(NOW(), INTERVAL 1200 MINUTE) ORDER BY `create_time` and `uid` = '0'";
$db->setQuery($sql);
$db->execute();
$this->oldsidscleaned = true;
Expand Down

0 comments on commit a025002

Please sign in to comment.