GB_Session_Tokens::create
Generate a session token and attach session information to it.
A session token is a long, random string. It is used in a cookie link that cookie to an expiration time and to ensure the cookie becomes invalidated upon logout. This function generates a token and stores it with the associated expiration time (and potentially other session information via the `attach_session_information` filter).
Signature
public function create(int
$expiration )
Parameters
$expiration
— int
Session expiration timestamp.
Returns
- string
- Session token.
Violations
Checkstyle
Line | Column | Severity | Message |
---|---|---|---|
143 | 11 | error | Whitespace found at end of line |