管理员登录后Drupal Access Denied问题

时间:2017-08-04 11:10:06

标签: php drupal

当我尝试登录Drupal管理面板时,我收到访问被拒绝的问题。

登录成功但显示拒绝访问错误。

我先前通过截断会话表来解决它。但是现在即使截断会话表也没有用。

感谢提前!

5 个答案:

答案 0 :(得分:1)

我刚评论了配置文件(主机文件)中的以下行。它开始工作了。

fastcgi_hide_header Set-Cookie;

谢谢!

答案 1 :(得分:0)

  1. 清除数据库中的会话表
  2. 清除数据库中的缓存
  3. 清除浏览器中的所有Cookie
  4. 清除所有浏览器缓存

答案 2 :(得分:0)

It is probable an issue with a cookie.

If you are using chrome

(1) go to : chrome://settings/cookies.

(2) paste the link of your website.

(3) delete the session cookie.

(4) Try access your site again and Enjoy! :)

答案 3 :(得分:0)

I had a problem of access denied when I tried to move my code from production to staging. I had to clear the cache and this helped me.

  1. Goto sitename/user/login and login using your credentials.

    The link to the website may be broken.

  2. Goto sitename/admin/config/development/performance and clear the cache

  3. Now try to login again.

If you are using chrome, then clear the cache in too.

答案 4 :(得分:0)

转到settings.php文件,检查$ cookie_domain是否设置为正确的域名。

这对我有用。