Nope...
Something weird I just noticed - when I login on PhpBB side - three phpbb cookies have check sign in "HTTP" column in inspector. And when I login via Wordpress - there is no check sign in that "HTTP" column.
So far, it hasn't logged me out. And I logged in on /wp-admin, not on phpbb side...
Keeps logging users out
-
- User ww
- Posts: 21
- Joined: Wed Jul 12, 2017 12:18 pm
Re: Keeps logging users out
Ha! Sorry for consecutive posts, but I have news. Maybe it's relevant.
So, I went out for half an hour and when I came back - I refreshed WP index, cookies were there, and they didn't have ✓ sign in HTTP column in inspector. That's because I logged in through WP side a while ago. But, when I clicked on forum topic, _k cookie was empty, but I noticed that ✓ sign appeared in all three phpBB cookies. Is it fair to assume that cookie HTTP header is causing the problem? Is that something with your script or pure phpBB problem?
So, I went out for half an hour and when I came back - I refreshed WP index, cookies were there, and they didn't have ✓ sign in HTTP column in inspector. That's because I logged in through WP side a while ago. But, when I clicked on forum topic, _k cookie was empty, but I noticed that ✓ sign appeared in all three phpBB cookies. Is it fair to assume that cookie HTTP header is causing the problem? Is that something with your script or pure phpBB problem?
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Keeps logging users out
so try open:
/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php
serach for this, inside private static function phpBB_user_session_set($wp_user_data){
change into:
that's to setup the cookie as http only.
CLean cookies and try out.
But i do not think this is your problem. Yiu should have wrong settings somewhere.
/wp-content/plugins/wp-w3all-phpbb-integration/class.wp.w3all-phpbb.php
serach for this, inside private static function phpBB_user_session_set($wp_user_data){
Code: Select all
setcookie ("$k", "$key_id_k", $cookie_expire, "/", $w3cookie_domain, $secure);
setcookie ("$sid", "$w3session_id", $cookie_expire, "/", $w3cookie_domain, $secure);
setcookie ("$u", "$phpbb_user_id", $cookie_expire, "/", $w3cookie_domain, $secure);
Code: Select all
setcookie ("$k", "$key_id_k", $cookie_expire, "/", $w3cookie_domain, $secure, true);
setcookie ("$sid", "$w3session_id", $cookie_expire, "/", $w3cookie_domain, $secure, true);
setcookie ("$u", "$phpbb_user_id", $cookie_expire, "/", $w3cookie_domain, $secure, true);
CLean cookies and try out.
But i do not think this is your problem. Yiu should have wrong settings somewhere.
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Keeps logging users out
sure that when you click on a last topic, you still are https if logged in as https and not http?
Think i reproduced the issue.
It seem to me that the switch to between http/s happen when i click into last topics widget to open a listed forum post.
It not happen in iframe, but happen in your mode.
Maybe i'm wrong, but i'm looking into this right now.
Can you do this please:
login wp side, then click on a last forum post. You phpbb will open, and you result logged out.
But your address say http now, not https?
if you switch to https the forum address into address bar, then you reappear logged in?
Can be this? Isn't it?
Think i reproduced the issue.
It seem to me that the switch to between http/s happen when i click into last topics widget to open a listed forum post.
It not happen in iframe, but happen in your mode.
Maybe i'm wrong, but i'm looking into this right now.
Can you do this please:
login wp side, then click on a last forum post. You phpbb will open, and you result logged out.
But your address say http now, not https?
if you switch to https the forum address into address bar, then you reappear logged in?
Can be this? Isn't it?
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Keeps logging users out
so, about the above, what's the URL setting of the plugin?
check and setup all as https so the URL setting of the WP_w3all plugin that point to phpBB should be
and not
if the WP main site url setting is https (so wp force to be ssl the request)
same do in phpBB ACP
under Server setting
Force server URL settings: set to Yes
and Server protocol setting to be:
https://
check and setup all as https so the URL setting of the WP_w3all plugin that point to phpBB should be
Code: Select all
https://localhost/wp51/forum
Code: Select all
http://localhost/wp51/forum
same do in phpBB ACP
under Server setting
Force server URL settings: set to Yes
and Server protocol setting to be:
https://
-
- User ww
- Posts: 21
- Joined: Wed Jul 12, 2017 12:18 pm
Re: Keeps logging users out
It is https in URL settings, and also its https when I hover over last topic link... All the time "green lock" is in address bar, and https is in every url. So, I guess it's not http/https issue.
Really getting ridiculos now, I even disabled Google analytics extension because I read it could cause trouble. But no luck, still getting logged out after few idle minutes.
Really getting ridiculos now, I even disabled Google analytics extension because I read it could cause trouble. But no luck, still getting logged out after few idle minutes.