程序员最近都爱上了这个网站  程序员们快来瞅瞅吧!  it98k网:it98k.com

本站消息

站长简介/公众号

  出租广告位,需要合作请联系站长

+关注
已关注

分类  

暂无分类

标签  

暂无标签

日期归档  

暂无数据

Problem with sessions on nginx using xenForo

发布于2023-03-22 21:22     阅读(1066)     评论(0)     点赞(24)     收藏(2)


I have an major problem with xenForo Logins on nginx and tried everything foundable out.

The xenForo is not the problem it workes fine on an other apache server but I need to move it to nginx.

I'm using the newest nginx and php7.1, php-fpm and all requested sources for xenForo are installed. Other Sites (like Roundcube) works fine. I use the default site config for all sites with - so far - no problems.

Now, for the problem. When I logi to my xenForo ACP the login works fine but I get immediately logged out. Some times I get logged out a few minutes later, when I change the site. On the user site the login works pretty fine als long as I stay on the forums pages (as the forum, member page, profiles) and get logged out when I use a 3rd party site programmed by me (worked fine on apache without problems).

The xenForo Filesystem is owned by www-data:www-data and chmod permissions are set correctly.

In the php.ini file I set the correct path for the sessions to /var/lib/php/sessions and with an external simple script I proved that the sessions are saved correctly with no problems.

No errors displayed.

As long as I can say, everything works fine just the Login makes real trouble and I get out of ideas.

Maybe someone here can help me and find something I didn't see.

Kind Regards,

//Edit: I found out that this Problem Not appears on the user site if the "Keep me logged in" button is ticket. Ob ACP there is no such button.

//Edit: I found out, that the Cookie didn't get dropped, it's still there.

//Edit: The timezones are correct.


解决方案


暂无回答



所属网站分类: 技术文章 > 问答

作者:黑洞官方问答小能手

链接:http://www.phpheidong.com/blog/article/517084/235bcf63d24ffcfa5ded/

来源:php黑洞网

任何形式的转载都请注明出处,如有侵权 一经发现 必将追究其法律责任

24 0
收藏该文
已收藏

评论内容:(最多支持255个字符)