Resolved -> Keeps on logging us out...

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Resolved -> Keeps on logging us out...

Re: Resolved -> Keeps on logging us out...

by axew3 » Tue Jul 18, 2017 11:56 am

this is it!
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]
http://httpd.apache.org/docs/2.2/mod/mod_rewrite.html
OR with examples:
http://www.askapache.com/htaccess/ssl-e ... p-to-https

Re: Resolved -> Keeps on logging us out...

by ave » Tue Jul 18, 2017 10:22 am

I see! Thank you. I've added this to phpbb .htaccess:

Code: Select all

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
As far as I can see, it's not possible to access our forum through http anymore. Hope this will solve the problem. :D

Re-solved: Keeps on logging us out...

by axew3 » Mon Jul 17, 2017 8:47 pm

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:

Code: Select all

https://www.f1puls.com/forum/
than after logged, you point instead to:

Code: Select all

http://www.f1puls.com/forum/
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

Code: Select all

http://www.f1puls.com/
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.

Re: Keeps on logging us out...

by ave » Mon Jul 17, 2017 1:52 pm

Gilles Villeneuve, jeez, that was a while ago :mrgreen:

Great, thanks, keep me posted!

Re: Keeps on logging us out...

by axew3 » Mon Jul 17, 2017 1:29 pm

:) but i love much more the fight of MotoGP! Ok, happy also for Ferrari if it will win but i must confess and be honest: i do not like too much riders of F1 (nor Ferrari's riders) ... i just remember Gilles Villeneuve! I know, when i'm true somebody hate me ... but ok ... of course i like Ferrari, but you know, i'm waiting for the fire to come out other time ... at moment ... no light about passion ... i just follow how it go, and of course happy if Ferrari win (finally i hope :) but seem very hard )

Ok, i've so logged out the user, and re-login now, because you say you have reactivate the cache plugin.
Before all was working fine, even when session was expired i was correctly login.
I try at moment the WP login since i think the problem is in WP ... let check some while, along the day i'll be over some moment to check what happen ...

Re: Keeps on logging us out...

by ave » Mon Jul 17, 2017 1:12 pm

Yes, it probably went to the spam folder, I am sorry, had that problem for a while now :? I disabled W3 cache plugin and immediately got a warning that our CPU usage is going nuts :mrgreen: So I had to enable it again. I have no idea how to fix this, but I asked our visitors to report as soon as something similar happen to any of them, so I'll know that the problem is still there.

Haha it's more F1 than MotoGP, but seeing your location, forza Ferrari! :mrgreen:

Top