使用wp_set_auth_cookie验证用户在Word preSS [英] Authenticating users in WordPress using wp_set_auth_cookie

查看:615
本文介绍了使用wp_set_auth_cookie验证用户在Word preSS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果用户X当前登录和 wp_set_auth_cookie 用于验证用户Z,是用户X自动注销?

If User X is currently logged in and wp_set_auth_cookie is used to authenticate User Z, is User X automatically logged out?

请注意我使用的是同一个浏览器窗口指的是用户。

Please note I am referring to the users using the same browser window.

HTTPS://$c$cx.word$p$pss。组织/ Function_Reference / wp_set_auth_cookie

推荐答案

没有。即使两个用户使用相同的用户名,它们都可以登录,并在同一时间使用该网站。您可以登录到一个单一的WP站点使用同一用户名两个单独的浏览器进行测试。你会看到,你可以围绕管理员浏览两个浏览器的罚款。这一事实与持有不同的用户名和真实的。

No. Even if the two users use the same username, they both can log in and use the site at the same time. You can test this by logging into a single WP site with on two separate browsers with the same user name. You'll see that you can navigate around the admin in both browsers fine. This fact holds true with different usernames as well.

这篇关于使用wp_set_auth_cookie验证用户在Word preSS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆