Logging out

Get help with installation and running phpBB 3.3.x here. Please do not post bug reports, feature requests, or extension related questions here.
Rey619
Registered User
Posts: 71
Joined: Mon Nov 04, 2024 4:27 pm

Logging out

Post by Rey619 »

I log into my forum and 5 minutes later im logged out and have re log in even when i click remember me. Other members with same issue. Any idea ?

https://swcthefinalchapter.com/1
User avatar
SpIdErPiGgY
Registered User
Posts: 312
Joined: Sun May 02, 2021 2:11 pm
Location: Erpe-Mere, Aalst, BE
Name: Andy Dm

Re: Logging out

Post by SpIdErPiGgY »

Most likley incorrect cookie settings
https://www.phpbb.com/support/docs/en/3 ... -settings/
Image
User avatar
warmweer
Jr. Extension Validator
Posts: 11874
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: Logging out

Post by warmweer »

Rey619 wrote: Mon Nov 11, 2024 10:02 pm I log into my forum and 5 minutes later im logged out and have re log in even when i click remember me. Other members with same issue. Any idea ?

https://swcthefinalchapter.com/1

Don't you see:
Cookie “phpbb3_8cvqq_k” has been rejected for invalid domain.

https://swcthefinalchapter.com/1 is wrong >>> https://swcthefinalchapter.com
set your cookiedomain to .swcthefinalchapter.com and not to www.swcthefinalchapter.com
If you purge cookies you don't have to change the cookie_name. If you don't you need to clear your browser cookies or use another browser. So the best option (for your users) = clear cookies
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
Rey619
Registered User
Posts: 71
Joined: Mon Nov 04, 2024 4:27 pm

Re: Logging out

Post by Rey619 »

interesting well i just did what it said so hopefully it works.
Rey619
Registered User
Posts: 71
Joined: Mon Nov 04, 2024 4:27 pm

Re: Logging out

Post by Rey619 »

warmweer wrote: Mon Nov 11, 2024 10:37 pm
Rey619 wrote: Mon Nov 11, 2024 10:02 pm I log into my forum and 5 minutes later im logged out and have re log in even when i click remember me. Other members with same issue. Any idea ?

https://swcthefinalchapter.com/1

Don't you see:
Cookie “phpbb3_8cvqq_k” has been rejected for invalid domain.

https://swcthefinalchapter.com/1 is wrong >>> https://swcthefinalchapter.com
set your cookiedomain to .swcthefinalchapter.com and not to www.swcthefinalchapter.com
If you purge cookies you don't have to change the cookie_name. If you don't you need to clear your browser cookies or use another browser. So the best option (for your users) = clear cookies
just changed it .swcthefinalchapter.com so is that all and do they have to clear cookies everytime or just once.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6436
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Logging out

Post by thecoalman »

Just change the cookie name, that will avoid any conflicts. Everyone will be logged out.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Rey619
Registered User
Posts: 71
Joined: Mon Nov 04, 2024 4:27 pm

Re: Logging out

Post by Rey619 »

and then when they log back in everything should be fine.
Rey619
Registered User
Posts: 71
Joined: Mon Nov 04, 2024 4:27 pm

Re: Logging out

Post by Rey619 »

Solved thanks,
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6436
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Logging out

Post by thecoalman »

Changing the name effectively resets everything and the board will no longer recognize old cookies if those are going to cause problems. it appears your setting are correct so you shouldn't have any issues going forward.

You might also want to consider redirecting http to https, once you have done that you can enable secure cookies.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison
Rey619
Registered User
Posts: 71
Joined: Mon Nov 04, 2024 4:27 pm

Re: Logging out

Post by Rey619 »

how do i do the second part u said because i changed it to .swcthefinalchapter.com
User avatar
warmweer
Jr. Extension Validator
Posts: 11874
Joined: Fri Jul 04, 2003 6:34 am
Location: somewhere in the space-time continuum

Re: Logging out

Post by warmweer »

Rey619 wrote: Mon Nov 11, 2024 11:07 pm how do i do the second part u said because i changed it to .swcthefinalchapter.com
search and you shall find: https://stackoverflow.com/questions/408 ... cess-rules
Spelling is freeware, which means you can use it for free.
On the other hand, it is not open source, which means you cannot change it or publish it in a modified form.


Time flies like an arrow, but fruit flies like a banana.
User avatar
thecoalman
Community Team Member
Community Team Member
Posts: 6436
Joined: Wed Dec 22, 2004 3:52 am
Location: Pennsylvania, U.S.A.

Re: Logging out

Post by thecoalman »

Rey619 wrote: Mon Nov 11, 2024 11:07 pm how do i do the second part u said because i changed it to .swcthefinalchapter.com
When you have not enabled secure cookies it will work either way. To enable secure cookies you can only use https thus you need to redirect because if someone tries to login over http it's not going to work.

If you are using Cpanel for hosting control panel open the domains section, find "Force HTTPS Redirect" and turn it on. Test to make sue it works and then you can enable secure cookies in phpBB ACP.
“Results! Why, man, I have gotten a lot of results! I have found several thousand things that won’t work.”

Attributed - Thomas Edison

Return to “[3.3.x] Support Forum”