I can’t believe I actually managed to find this answer on my own!!! 😀
In case anyone else is ever curious about this:
The name of the cookie is defined in the constant LOGGED_IN_COOKIE
To get the value thereof just setup an action like so:
add_action( 'set_logged_in_cookie', 'action_set_logged_in_cookie', 10, 5 );
function action_set_logged_in_cookie( $logged_in_cookie, $expire, $expiration, $user_id, $logged_in )
$logged_in_cookie is the value. Thus to answer my question I have to do:
$hash = hash_hmac ( 'md5' , LOGGED_IN_COOKIE . $logged_in_cookie , 'some secret key' );
Related Posts:
- Can’t log in: “ERROR: Cookies are blocked or not supported by your browser. You must enable cookies to use WordPress.”
- Login page ERROR: Cookies are blocked due to unexpected output
- Removing username from the ‘wordpress_logged_in’ cookie
- Getting “Cookies are blocked or not supported by your browser” on login page
- Cookie settings for session across WPML subdomains using custom AJAX login
- Login redirect_to loop with reauth=1, cookie expiry set to 1 year in past
- Get user ID after logging in
- Get wordpress stored cookies for custom login
- How to get login data (session) outside WordPress?
- Login cookie across multiple domains on network w/ mapping
- Can’t login after URL change
- How to set different cookies for logged in admin users and logged in non admin users?
- 2 wordpress blogs with 1 users table and 1 login
- Logins through alias
- v5.6.2 User cannot stay logged in – wordpress_test cookie placed but not auth cookies
- Removing wordpress cookie from non-wordpress site
- Getting a person’s username from a wordpress cookie
- One time login on 2 different WordPress sites
- How to force “remember me” users to login again?
- Multiple issues with Ajax login function due to browsers and cookies
- Sharing a logged in session with a custom subdmain site?
- Get WordPress logged in username from root domain when WP is installed in a subfolder
- wp-cron event doesn’t run when custom login API is enabled
- Extend Cookie with auth_cookie_expiration not working
- Custom login method appears to ignore auth_cookie_expiration
- Why deleting/removing cookies in WordPress does not log me out from admin?
- Cookies error during first time login attempt
- Opening protected page with cookie?
- WordPress Cookies – wp_set_auth_cookie
- Why doesn’t the “Remember Me” checkbox work for me on a live website? Only works on a local server environment
- Share login status across subdomains without network
- How to remove without touching the pluggable.php the wordpress_logged_in cookie to show the username on login?
- Is there any way to rename or hide wp-login.php?
- I can’t access my site via wp-admin
- Website Visible only to Registered users
- How do I use add_action from a class method?
- I want to disable E-Mail verifcation / activation when a user signs up for my WordPress site
- How do I check if a post is private?
- Action wp_login_failed not working if only one field is filled out
- Display last login time
- Intentionally Force Failed Login WordPress
- What hooks should I use for pre-login and pre-registration actions?
- password protect individual pages
- Change register form action url
- Subdomain login problems
- Is back-end access not required for an app to post to my blog?
- Store brute-force IP addresses
- How do I make my site publicly viewable? Everything redirects to wp-admin
- How to create a private login page for admin.?
- WordPress Security – How to block alternative WordPress access
- Protecting WordPress login page
- Different homepage for logged in users
- reset password link redirect to login page
- Deregister default wp-admin css on login screen only?
- How to fix blocked cookies error that doesn’t let me log into wp-admin?
- SSO to WP, from a non-wp site on a different domain and server
- How can I login as admin after redirect to custom login page
- Login with serialized password
- is_user_logged_in() not working in Firefox
- Login cookies set as wrong domain
- Why would the login page reload indefinitely?
- Set Default User Role
- Creating custom login errors
- Lock out all WordPress Administrators except two specific users
- Why is wp-login trying to send an email?
- Why does is_user_logged_in() return false after I change user password on the front end?
- How to generate “WP_Error” Object for user login?
- ?login=failed only attached to URL under certain circumstances
- WordPress not logged in locally with correct username and password
- my wp-login page doesn’t load [closed]
- Requiring login for specific pages
- login trouble WordPress can change IDs created by hoster site
- login/logout for only one page
- WordPress registration page template
- Removing “public” user registration without completely turning it off?
- Custom login modal page action
- Require re-login when logged-in user attempts to access restricted page
- Disable registration on certain condition
- Temporally disable password to login with empty password?
- Login error when username as email different to primary email
- Unable to login my wordpress website
- How do you implement a login feature on a WordPress site?
- Help! ERROR: Cookies are blocked due to unexpected output on attempting to login to resolve an issue with my site
- How to log into WordPress admin in MAMP
- Can’t login with any account – No error message shown
- wp login password reset
- Single sign on to sub-sites in Multisite Network
- Hide login page and use wp_login_form on ordinary pages
- Login screen keeps resetting?
- How can I customize the content of the login page?
- WordPress giving error when I log in after trying emergency.php
- Some crawlers/bots attempting to login with very good guesses. How?
- Create custom field for users to check if they agreed to terms
- WordPress logs out on protocol switch
- Showing A Menu When Only Users Are Logged In [duplicate]
- wp_logout logging everyone out instead of just the user that clicked the logout link!
- Secure login without SSL? [closed]
- Cant login, Password MUST be reset error, after reset
- Trying to create a log in system but getting error “Parse error: syntax error, unexpected ‘else’ (T_ELSE) ” [closed]
- authenticate to another site using a login form on my site