最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

redirect - How can I force the user to log in, even if they're already authenticated?

programmeradmin2浏览0评论

I am creating a link to a Wordpress page. In this scenario, multiple users may use the same machine and get confused about who is logged in, so every time they follow the link they must be forced to log in again.

(This is a convenience/UX issue, not a security issue, so the fact that they could easily bypass the login is not a concern.)

So the link should:

  1. Force them to log in again
  2. Then take them to the page

I have tried

.php?redirect_to=;reauth=1

but it seems I can't rely on reauth=1 to force the login.

Is there another way to do this?

发布评论

评论列表(0)

  1. 暂无评论