What exactly is ReAuth?

时间:2013-03-12 作者:Jordan Thornquest

正在搜索“WordPress Reauth“诸如此类的事情都会导致人们在ReAuth=1. ReAuth到底是什么?

1 个回复
最合适的回答,由SO网友:Wyck 整理而成

ReAuth=1 登录时需要Cookies 不再有效,WordPress将强制验证您的浏览器。

if ( $force_reauth ) 
    $login_url = add_query_arg(\'reauth\', \'1\', $login_url);
当auth\\u redirect()重定向到wp login时,将reauth=1标志添加到登录url。验证cookie失败后的php验证wp登录。如果reauth=1,php将清除Cookie并强制登录基本上,只要auth\\u redirect()认为用户没有登录,就会强制重新授权/登录。这应该可以解决这样一种情况:一种饼干看起来不错,而另一种看起来不好。

---Ryan via公司Trac 12142

要解决此问题,您可以清除Cookie并更改安全密钥,或者使用wp_set_auth_cookie.

一些参考:
http://digwp.com/2010/09/wordpress-security-keys/http://codex.wordpress.org/Function_Reference/wp_set_auth_cookie

结束

相关推荐

Wordpress login form script

I am looking for something very simple but I\'m not quite sure how to achieve this. I have been researching for the past 2-3 hours and gathered a lot of useful information. However, my knowledge in both PHP and WordPress isn\'t enough to do this from scra