Skip to content

Commit

Permalink
Merge pull request #126 from codeages/bugfix/fix-locktime
Browse files Browse the repository at this point in the history
fix variable
  • Loading branch information
canuonifeng committed Aug 1, 2019
2 parents d847b28 + 44a775a commit a1e6435
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Session/Handler/BizSessionHandler.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public function write($session_id, $session_data)

public function getLock($lockName, $lockTime = 30)
{
$result = $this->biz['db']->fetchAssoc("SELECT GET_LOCK(?, ?) AS getLock", array('sess_'.$lockName, $lockName));
$result = $this->biz['db']->fetchAssoc("SELECT GET_LOCK(?, ?) AS getLock", array('sess_'.$lockName, $lockTime));

return $result['getLock'];
}
Expand Down

0 comments on commit a1e6435

Please sign in to comment.