Problem with Cookies

Get help with installation and running phpBB 3.2.x here. Please do not post bug reports, feature requests, or extension related questions here.
enter a valid email
Registered User
Posts: 268
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Problem with Cookies

Post by enter a valid email » Thu Oct 11, 2018 7:46 pm

Hi
I asked in the German Forum before but there was no Solution. I installed a Lets Encrypt Certificate.
Changed the Cookie Settings for SSL and secure Connection. I still deleted the Cache from FF and my Hoster.
I still have no clue what happened and why the make so much trouble. I installed no Plugin who interact with the Cookie thing.
After 0 - 20 Clicks I get logged out. Does anyone have an idea?
Thanks

User avatar
lopoto
Registered User
Posts: 95
Joined: Thu Feb 12, 2015 3:13 pm

Re: Problem with Cookies

Post by lopoto » Thu Oct 11, 2018 8:14 pm


User avatar
Lumpy Burgertushie
Registered User
Posts: 65349
Joined: Mon May 02, 2005 3:11 am
Contact:

Re: Problem with Cookies

Post by Lumpy Burgertushie » Thu Oct 11, 2018 8:18 pm

and you probably need to add this bit to your htaccess file:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
robert
I am available for custom work on a donation basis. Please send me a PM with your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

OK, so what's the speed of dark?

enter a valid email
Registered User
Posts: 268
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email » Fri Oct 12, 2018 12:14 pm

THX I will update it this Weekend. What could cause the problem? Maybe someone can explain it?

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20390
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Problem with Cookies

Post by Mick » Fri Oct 12, 2018 1:18 pm

Please post a link to your board.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.


User avatar
Mick
Support Team Member
Support Team Member
Posts: 20390
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Problem with Cookies

Post by Mick » Fri Oct 12, 2018 2:20 pm

Ok, you're cookies are good for https, if someone goes in using http there will be logging in and staying logged in problems. If you have the redirect in your .htaccess file you should be good to go.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

enter a valid email
Registered User
Posts: 268
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email » Fri Oct 12, 2018 2:22 pm

My Hoster claim to activate the Lets Encrypt Auto Installer in C-Panel with that I should have an Valide Certificate for the domain.at, www.domain.at ;)

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20390
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Problem with Cookies

Post by Mick » Fri Oct 12, 2018 4:38 pm

Yes, SSL/cookie settings are working properly for https.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

enter a valid email
Registered User
Posts: 268
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email » Sun Oct 14, 2018 6:21 pm

Lumpy Burgertushie wrote:
Thu Oct 11, 2018 8:18 pm
and you probably need to add this bit to your htaccess file:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]
robert
:D so now I updated the File and te redirect to https works fine but I still get kicked out from the Server! :shock:
THX

janus_zonstraal
Registered User
Posts: 2784
Joined: Sat Aug 30, 2014 1:30 pm

Re: Problem with Cookies

Post by janus_zonstraal » Sun Oct 14, 2018 6:35 pm

Can you post your .htacces here?
Sorry! My English is bat ;) !!!

enter a valid email
Registered User
Posts: 268
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email » Sun Oct 14, 2018 6:45 pm

<IfModule mod_rewrite.c>
RewriteEngine on

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

</IfModule>

<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

janus_zonstraal
Registered User
Posts: 2784
Joined: Sat Aug 30, 2014 1:30 pm

Re: Problem with Cookies

Post by janus_zonstraal » Sun Oct 14, 2018 6:48 pm

Try to place the redirect on top of the file, like this:

Code: Select all

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R=301,L]

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ app.php [QSA,L]

</IfModule>

<IfModule mod_version.c>
<IfVersion < 2.4>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfVersion>
<IfVersion >= 2.4>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfVersion>
</IfModule>
<IfModule !mod_version.c>
<IfModule !mod_authz_core.c>
<Files "config.php">
Order Allow,Deny
Deny from All
</Files>
<Files "common.php">
Order Allow,Deny
Deny from All
</Files>
</IfModule>
<IfModule mod_authz_core.c>
<Files "config.php">
Require all denied
</Files>
<Files "common.php">
Require all denied
</Files>
</IfModule>
</IfModule>
<IfModule mod_rewrite.c>
And try to access the ACP with a other browser
Sorry! My English is bat ;) !!!

User avatar
Mick
Support Team Member
Support Team Member
Posts: 20390
Joined: Fri Aug 29, 2008 9:49 am
Location: Cardiff

Re: Problem with Cookies

Post by Mick » Sun Oct 14, 2018 6:53 pm

And only one RewriteEngine on.
"The more connected we get the more alone we become" - Kyle Broflovski

There are no ‘threads’ in phpBB, they are topics.

enter a valid email
Registered User
Posts: 268
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email » Sun Oct 14, 2018 7:11 pm

Excelent. I Edit it and have still the Problem.

Post Reply

Return to “[3.2.x] Support Forum”

Who is online

Users browsing this forum: djdakta and 45 guests