Gilles Villeneuve, jeez, that was a while ago
Great, thanks, keep me posted!
Resolved -> Keeps on logging us out...
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re-solved: Keeps on logging us out...
after all afternoon, i've return over the pc, so i've open your site on fly.
I result correctly logged in, and no problem have come out.
So another thing that may you have to note, is this important one (this also explain to me why you was thinking that the error was due to phpBB):
if you login in phpBB via ssl/https:
than after logged, you point instead to:
so http, not https,
you'll see that you result logged out.
repoint to https: you'll result logged in other time correctly.
Cookie, as normal it need to be, are not recognized if released as https and you point to phpBB as http.
It clear now why the behavior. You simply, wrongly, access phpBB via http, and not https, and maybe you have links that point to forum via http, not https. The worst, is that maybe an user login while http: so will be never recognized in wp side, as on wp it is forced to be https (but cookie was released as http).
You see in WP side, that if you point to
you're correctly forced to https:
this you need to do also in phpBB, force to redirect any http request, to an https request.
The same behavior you can experience here at axew3.com (http/https) because i've not setup nothing to fix it here via htaccess.
And this is your problem. Solution:
force phpBB to be accessed only via https, that mean any request to http url, will be rewrite to be https.
This will be added as hint on help sticky posts.
I result correctly logged in, and no problem have come out.
So another thing that may you have to note, is this important one (this also explain to me why you was thinking that the error was due to phpBB):
if you login in phpBB via ssl/https:
Code: Select all
https://www.f1puls.com/forum/
Code: Select all
http://www.f1puls.com/forum/
you'll see that you result logged out.
repoint to https: you'll result logged in other time correctly.
Cookie, as normal it need to be, are not recognized if released as https and you point to phpBB as http.
It clear now why the behavior. You simply, wrongly, access phpBB via http, and not https, and maybe you have links that point to forum via http, not https. The worst, is that maybe an user login while http: so will be never recognized in wp side, as on wp it is forced to be https (but cookie was released as http).
You see in WP side, that if you point to
Code: Select all
http://www.f1puls.com/
this you need to do also in phpBB, force to redirect any http request, to an https request.
The same behavior you can experience here at axew3.com (http/https) because i've not setup nothing to fix it here via htaccess.
And this is your problem. Solution:
force phpBB to be accessed only via https, that mean any request to http url, will be rewrite to be https.
This will be added as hint on help sticky posts.
-
- User ww
- Posts: 21
- Joined: Wed Jul 12, 2017 12:18 pm
Re: Resolved -> Keeps on logging us out...
I see! Thank you. I've added this to phpbb .htaccess:
As far as I can see, it's not possible to access our forum through http anymore. Hope this will solve the problem.
Code: Select all
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Resolved -> Keeps on logging us out...
this is it!
if now you point to http url on your phpBB and you'll be rewrite to https, it is ok ...
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
OR with examples:
http://www.askapache.com/htaccess/ssl-e ... p-to-https
if now you point to http url on your phpBB and you'll be rewrite to https, it is ok ...
Code: Select all
#maybe RewriteEngine on if already fired before in htaccess not need to be re-added
#RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule .* https://%{SERVER_NAME}%{REQUEST_URI} [R,L]
OR with examples:
http://www.askapache.com/htaccess/ssl-e ... p-to-https