wp_generate_auth_cookie


wp_generate_auth_cookie ( $user_id, $expiration, $scheme = 'auth', $token = '' )

Parameters:
  • (int) $user_id User ID.
  • (int) $expiration The time the cookie expires as a UNIX timestamp.
  • (string) $scheme Optional. The cookie scheme to use: 'auth', 'secure_auth', or 'logged_in'. Default 'auth'.
  • (string) $token User's session token to use for this cookie.
Returns:
  • (string) Authentication cookie contents. Empty string if user does not exist.
Defined at:
Change Log:
  • 4: .

Description

Generates authentication cookie contents.

Related Functions

wp_set_auth_cookie, wp_parse_auth_cookie, wp_clear_auth_cookie, wp_validate_auth_cookie, wp_generate_tag_cloud

Top Google Results

User discussions

wpseek mobile