admin管理员组文章数量:1297091
I created a custom plugin for login and registration forms.
When I log in for a new user, 4 cookies are set : PHPSESSID
, wordpress_test_cookie
, wordpress_logged_in_
, and 2 wordpress_sec_
.
But I don't have wp-settings-
and wp-settings-time-
. However my admin account has these cookies.
I can't find a wordpress documentation that explain which function set these cookies. It is just said :
Without plugins installed, WordPress sets the following cookies:
wordpress_[hash]
wordpress_logged_in_[hash]
wordpress_test_cookie
wp-settings-{time}-[UID]
I don't use "setcookie" at the moment .
The functions I use to allow him to access his account :
wp_clear_auth_cookie();
wp_set_current_user($info->ID, $username);
wp_set_auth_cookie( $info->ID, true, is_ssl() );
本文标签: customizationWhen is the wpsettingstime cookie generated
版权声明:本文标题:customization - When is the wp-settings-[time] cookie generated? 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741619223a2388710.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论