// most secure, except for cases where NAT (Network Address Translation)
// is used and two or more computers can have same IP address
returnfalse;
}
$this->DirectVars=$result;
$this->Expiration=$result[$this->TimestampField];
returntrue;
}
functionGetExpiration()
{
return$this->Expiration;
}
functionLoadData()
{
$query='SELECT '.$this->DataValueField.','.$this->DataVarField.' FROM '.$this->SessionDataTable.' WHERE '.$this->IDField.' = '.$this->Conn->qstr($this->Session->SID);
//return $this->Conn->GetOne('SELECT '.$var_name.' FROM '.$this->TableName.' WHERE `'.$this->IDField.'` = '.$this->Conn->qstr($this->Session->GetID()) );