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: 324
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Problem with Cookies

Post by enter a valid email »

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: 111
Joined: Thu Feb 12, 2015 3:13 pm

Re: Problem with Cookies

Post by lopoto »

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

Re: Problem with Cookies

Post by Lumpy Burgertushie »

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
Premium phpBB 3.3 Styles by PlanetStyles.net

I am pleased to announce that I have completed the first item on my bucket list. I have the bucket.
enter a valid email
Registered User
Posts: 324
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email »

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: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: Problem with Cookies

Post by Mick »

Please post a link to your board.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
User avatar
Mick
Support Team Member
Support Team Member
Posts: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: Problem with Cookies

Post by Mick »

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©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
enter a valid email
Registered User
Posts: 324
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email »

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: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: Problem with Cookies

Post by Mick »

Yes, SSL/cookie settings are working properly for https.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
enter a valid email
Registered User
Posts: 324
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email »

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
User avatar
janus_zonstraal
Registered User
Posts: 6427
Joined: Sat Aug 30, 2014 1:30 pm

Re: Problem with Cookies

Post by janus_zonstraal »

Can you post your .htacces here?
Sorry! My English is bat ;) !!!
enter a valid email
Registered User
Posts: 324
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email »

<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]
User avatar
janus_zonstraal
Registered User
Posts: 6427
Joined: Sat Aug 30, 2014 1:30 pm

Re: Problem with Cookies

Post by janus_zonstraal »

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: 26546
Joined: Fri Aug 29, 2008 9:49 am

Re: Problem with Cookies

Post by Mick »

And only one RewriteEngine on.
  • "The more connected we get the more alone we become" - Kyle Broflovski©
  • "The good news is hell is just the product of a morbid human imagination.
    The bad news is, whatever humans can imagine, they can usually create.
    " - Harmony Cobel
enter a valid email
Registered User
Posts: 324
Joined: Mon May 30, 2016 4:50 pm
Location: VIE
Contact:

Re: Problem with Cookies

Post by enter a valid email »

Excelent. I Edit it and have still the Problem.
Post Reply

Return to “[3.2.x] Support Forum”