/** * Returns the unique id assigned to the user in the database (retrieved * from the session cookie if the cookie authenticates) or FALSE if not * found or authentication fails. * * @return int */ public function GetIdentity() { $Result = $this->_Identity->GetIdentity(); if ($Result < 0) { $Result = 0; } return $Result; }
public function SetIdentity($Value, $Persist = FALSE) { $this->_Identity->SetIdentity($Value, $Persist); }