dongque8332 2010-06-16 21:24
浏览 44
已采纳

Cookie不适用于WordPress上受密码保护的页面

Initially I had the issue reported in this question.

Now, what I noticed is that there are some browsers that accept the password, and there are some which don't. Difference? For some reason the cookie is generated when I log in into the Administration module, but it isn't when I write down the password to access the page, forcing it to simply reload.

I can see the cookie created for the log-in, but I can see none for the password-protected Page.

These happens on Internet Explorer, both version 7 and 8; only on some machines, though, but most of them fail this. I already tried white-listing the URL, and even letting it accept ALL cookies, to no avail.

What may be the cause? If perhaps it's got something to do with question above, please help me!

Thanks in advance.

PS: If you know of another, cookie-free method to make a simple authentication, please link me to it. Thanks. Oh, and by the way, this is inside an Intranet with static, class C IPs.

  • 写回答

1条回答 默认 最新

  • doufubu2518 2010-06-16 21:28
    关注

    Assuming you're on an Apache server, consider this authentication module for Wordpress that allows for a far more flexible approach:

    http://wordpress.org/extend/plugins/http-authentication/

    This module allows you to Bypass WordPress' normal authentication and use Apache's authentication instead - So pretty much any auth you'd like to use.

    You can find more information on Apache Authentication methods here:

    http://httpd.apache.org/docs/1.3/howto/auth.html#database

    I've pointed at the database section as I'm assuming you'll want to use a database to authenticate.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入
  • ¥15 用土力学知识进行土坡稳定性分析与挡土墙设计
  • ¥70 PlayWright在Java上连接CDP关联本地Chrome启动失败,貌似是Windows端口转发问题
  • ¥15 帮我写一个c++工程
  • ¥30 Eclipse官网打不开,官网首页进不去,显示无法访问此页面,求解决方法
  • ¥15 关于smbclient 库的使用