How to run code when cookie is added?
How to run code when cookie is added?
How to run code when cookie is added?
Display value of the GET parameter in a new URL page
Ajax login fails: script sets cookies, but is_user_logged_in() returns false
How are sites using wordpress hiding wordpress cookies that have “wp” or “wordpress” in the cookie name?
Authentication between two different sites using the WordPress login cookie
Answering my own post here, it seems that WP Super Cache has a dedicated setting (in Advanced section) to not cache urls that have a GET parameter. Once that is checked, problem seems not to replicate for me anymore. So indeed the root problem is that cached files do not run the php code anymore, … Read more
When is the wp-settings-[time] cookie generated?
I didn’t see this happening on your site, but I think you could probably remove the variable declaration in front of setcookie(). I didn’t see result called used any where in this code. Which makes me wonder if the value is being set because since the variable isn’t used. <?php add_filter( ‘init’, ‘aws_set_language_cookie’, 999 ); … Read more
There are a few things going on there that need to be tweaked. The code below should do what you need. The setting of the cookie shouldn’t query for is the user logged-in. This can’t be relied upon to return true on a login request. Just rely on the wp_login hook to assure you that … Read more
How can I get an updated cookie in header.php?