mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-03-12 00:45:34 +00:00
- new method getId()
This commit is contained in:
parent
322d4e78d9
commit
da2e00e96b
|
@ -57,6 +57,7 @@ class LetoDMS_Session {
|
|||
*/
|
||||
function __construct($db) { /* {{{ */
|
||||
$this->db = $db;
|
||||
$this->id = false;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
|
@ -75,6 +76,7 @@ class LetoDMS_Session {
|
|||
$queryStr = "UPDATE tblSessions SET lastAccess = " . mktime() . " WHERE id = " . $this->db->qstr($id);
|
||||
if (!$this->db->getResult($queryStr))
|
||||
return false;
|
||||
$this->id = $id;
|
||||
return $resArr[0];
|
||||
} /* }}} */
|
||||
|
||||
|
@ -123,7 +125,17 @@ class LetoDMS_Session {
|
|||
if (!$this->db->getResult($queryStr)) {
|
||||
return false;
|
||||
}
|
||||
$this->id = false;
|
||||
return true;
|
||||
} /* }}} */
|
||||
|
||||
/**
|
||||
* Get session id
|
||||
*
|
||||
* @return string session id
|
||||
*/
|
||||
function getId() { /* {{{ */
|
||||
return $this->id;
|
||||
} /* }}} */
|
||||
}
|
||||
?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user