JSession::getToken
Get a session token, if a token isn't set yet one will be generated.
Tokens are used to secure forms from spamming attacks. Once a token has been generated the system will check the post request to see if it is present, if not it will invalidate the session.
Signature
public function getToken([boolean
$forceNew = false] )
Parameters
-
$forceNew
- If true, force a new token to be created
Returns
- string
- The session token