validateAuthCookie()
validateAuthCookie(string $cookie = '') : boolean|integer
验证cookie
Validates authentication cookie.
Parameters
| string |
$cookie |
Optional. If used, will validate contents instead of cookie's |
Returns
boolean|integer
— False if invalid cookie, User ID if valid.