Class XoopsToken
This class express token. this has name, token's string for inquiry, lifetime, serial number. this does not have direct validation method, therefore this does not depend on $_Session and $_Request.
You can refer to a handler class for this token. this token class means ticket, and handler class means ticket agent. there is a strict ticket agent type(XoopsSingleTokenHandler), and flexible ticket agent for the tab browser(XoopsMultiTokenHandler).
public
|
|
public
string
|
|
public
string
|
|
public
string
|
|
public
|
|
public
integer
|
|
public
string
|
|
public
string
|
|
public
boolean
|
public
|
$_name_ |
|
#
token's name. this is used for identification. |
public
|
$_token_ |
|
#
token's string for inquiry. this should be a random code for security. |
public
|
$_lifetime_ |
|
#
the unixtime when this token is effective. |
public
|
$_unlimited_ |
|
#
unlimited flag. if this is true, this token is not limited in lifetime. |
public
integer
|
$_number_ | 0 |
#
serial number. this used for identification of tokens of same name tokens. |