Property | Type | Description | |
---|---|---|---|
$CookieDomain | string | ||
$CookieHashMethod | boolean | ||
$CookieName | string | ||
$CookiePath | string | ||
$CookieSalt | string | ||
$PersistExpiry | string | ||
$SessionExpiry | string | ||
$UserID | integer | null | ||
$VolatileMarker | string |
Method | Description | |
---|---|---|
__construct ( null $Config = null ) | ||
checkCookie ( $CookieName, null $CookieHashMethod = null, null $CookieSalt = null ) : boolean | Validate security of our cookie. | |
checkVolatileMarker ( $CheckUserID ) : boolean | ||
deleteCookie ( $CookieName, null $Path = null, null $Domain = null ) | Remove a cookie. | |
getCookiePayload ( string $CookieName ) : array | Get the pieces that make up our cookie data. | |
getIdentity ( ) : integer | 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. | |
hasVolatileMarker ( $CheckUserID ) : boolean | ||
init ( null $Config = null ) | ||
setCookie ( string $CookieName, string $KeyData, mixed $CookieContents, integer $CookieExpires, string $Path = null, string $Domain = null, string $CookieHashMethod = null, string $CookieSalt = null ) : void | Set a cookie, using specified path, domain, salt and hash method | |
setIdentity ( integer $UserID, boolean $Persist = false ) | Generates the user's session cookie. | |
setVolatileMarker ( integer $UserID ) : void |
Method | Description | |
---|---|---|
_checkCookie ( $CookieName ) : boolean | ||
_clearIdentity ( ) | Destroys the user's session cookie - essentially de-authenticating them. | |
_deleteCookie ( $CookieName ) | Remove a cookie. | |
_setCookie ( string $CookieName, string $KeyData, mixed $CookieContents, integer $CookieExpires ) : void | Set a cookie, using path, domain, salt, and hash method from core config |
protected _checkCookie ( $CookieName ) : boolean | ||
$CookieName | ||
return | boolean |
protected _clearIdentity ( ) |
protected _deleteCookie ( $CookieName ) | ||
$CookieName |
public checkVolatileMarker ( $CheckUserID ) : boolean | ||
$CheckUserID | ||
return | boolean |
public static deleteCookie ( $CookieName, null $Path = null, null $Domain = null ) | ||
$CookieName | ||
$Path | null | |
$Domain | null |
public static getCookiePayload ( string $CookieName ) : array | ||
$CookieName | string | |
return | array |
public getIdentity ( ) : integer | ||
return | integer |
public hasVolatileMarker ( $CheckUserID ) : boolean | ||
$CheckUserID | ||
return | boolean |
public static setCookie ( string $CookieName, string $KeyData, mixed $CookieContents, integer $CookieExpires, string $Path = null, string $Domain = null, string $CookieHashMethod = null, string $CookieSalt = null ) : void | ||
$CookieName | string | Name of the cookie |
$KeyData | string | |
$CookieContents | mixed | |
$CookieExpires | integer | |
$Path | string | Optional. Cookie path (auto load from config) |
$Domain | string | Optional. Cookie domain (auto load from config) |
$CookieHashMethod | string | Optional. Cookie hash method (auto load from config) |
$CookieSalt | string | Optional. Cookie salt (auto load from config) |
return | void |
public setIdentity ( integer $UserID, boolean $Persist = false ) | ||
$UserID | integer | The unique id assigned to the user in the database. |
$Persist | boolean | Should the user's session remain persistent across visits? |
public setVolatileMarker ( integer $UserID ) : void | ||
$UserID | integer | |
return | void |