wp_parse_auth_cookie


wp_parse_auth_cookie ( $cookie = '', $scheme = '' )

Parameters:
  • (string) cookie Authentication cookie.
  • (string) scheme Optional. The cookie scheme to use: 'auth', 'secure_auth', or 'logged_in'.
Returns:
  • (string[]|false) { Authentication cookie components. None of the components should be assumed to be valid as they come directly from a client-provided cookie value. If the cookie value is malformed, false is returned. @type string $username User's username. @type string $expiration The time the cookie expires as a UNIX timestamp. @type string $token User's session token used. @type string $hmac The security hash for the cookie. @type string $scheme The cookie scheme to use. }
Defined at:
Change Log:
  • 4: .

Description

Parses a cookie into its components.

Related Functions

wp_set_auth_cookie, wp_clear_auth_cookie, wp_generate_auth_cookie, wp_validate_auth_cookie, wp_setcookie

Top Google Results

User discussions

wpseek mobile