Log me on automatically each visit, don't work

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Scam Warning
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
User avatar
darcie
Community Team Member
Community Team Member
Posts: 5546
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

Re: Log me on automatically each visit, don't work

Post by darcie »

maethlin wrote:Darcie (and everyone else) - thanks so much for helping people out... I still seem to be having problems but I'm probably just being too dense to figure it out on my own. Incidentally, my ideal fix is to disable any sort of URL/domain/type checking altogether - this is hosted on an internal network anyway so there is zero public access. I imagine others might also benefit if there's some fix they can do to just allow always auto-login without having to go through a domain-check for the cookie to work.

I already have auto-login enabled.

My site is either accessed through http://portal/bb or http://portal.hjw.local/bb (people use both - do I have to pick one or the other for this to work?)

Cookie settings as I have them right now:
cookie domain: portal
cookie name: phpbb3_bb
cookie path: /bb/
On page 3 of this topic is a fix for using "portal" in place of "localhost" http://www.phpbb.com/community/viewtopi ... 5#p3963095 from A_J_D. Do that, remove the trailing slash from the cookie path, and it should work.

I have yet to see instances where cookies will work for accessing the site via two different locations. Since a cookie is only set for one, the second will not have a cookie and therefore will not maintain the session. Looks like you'll have to pick a favourite child. ;)
phpBB on Facebook | Site Rules | Former Community Team leader
maethlin
Registered User
Posts: 2
Joined: Tue Feb 12, 2008 4:43 pm

Re: Log me on automatically each visit, don't work

Post by maethlin »

Thank you Darcie.

I ended up changing the cookie name again, removing the trailing slash, and told everyone to use the FQDN internally and it works. I was hoping there was an easy way to remove domain-name checking but this should work for us.

Thanks again!
Doby45
Registered User
Posts: 1
Joined: Sat Mar 08, 2008 4:10 pm

Re: Log me on automatically each visit, don't work

Post by Doby45 »

I would appreciate any assistance that could be given..

Cookie Domain : .tsncbolt.com
Cookie Name : phpbb3_sx1ad
Cookie Path : /phpBB3/cookies
Cookies Security : Disabled

My forum is located here

http://www.tsncbolt.com/phpBB3/index.php
User avatar
darcie
Community Team Member
Community Team Member
Posts: 5546
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

Re: Log me on automatically each visit, don't work

Post by darcie »

You are setting the cookie path for an inexistent directory within your forum's directory. It should be simply /phpBB3.
phpBB on Facebook | Site Rules | Former Community Team leader
ajdmo
Registered User
Posts: 2
Joined: Mon Mar 10, 2008 9:34 pm

Re: Log me on automatically each visit, don't work

Post by ajdmo »

I too am having the same issue with persistent logins not working. My cookie info is the following

Cookie settings
Cookie domain: ajaicdmo.org
Cookie name: ajaicdmoforum
Cookie path: /
Cookie security: disabled

Forum is located at: http://www.ajaicdmo.org
User avatar
darcie
Community Team Member
Community Team Member
Posts: 5546
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

Re: Log me on automatically each visit, don't work

Post by darcie »

Place a leading dot before your domain- .ajaicdmo.org -and try again.
phpBB on Facebook | Site Rules | Former Community Team leader
ajdmo
Registered User
Posts: 2
Joined: Mon Mar 10, 2008 9:34 pm

Re: Log me on automatically each visit, don't work

Post by ajdmo »

Perfect!

Thank you :)
neomare
Registered User
Posts: 3
Joined: Mon Oct 15, 2007 6:01 pm
Location: Serbia

Re: Log me on automatically each visit, don't work

Post by neomare »

I too am having the same problem.. My cookie info is the following:

Cookie settings
Cookie domain: .masinac.net
Cookie name: phpbb3_efjkl
Cookie path: /forum
Cookie security: disabled

Forum is located at: http://www.masinac.net
User avatar
darcie
Community Team Member
Community Team Member
Posts: 5546
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

Re: Log me on automatically each visit, don't work

Post by darcie »

No issues with your cookies are jumping right out at me. Perhaps you should start a new topic with a complete SRT to diagnose your problem.
phpBB on Facebook | Site Rules | Former Community Team leader
neomare
Registered User
Posts: 3
Joined: Mon Oct 15, 2007 6:01 pm
Location: Serbia

Re: Log me on automatically each visit, don't work

Post by neomare »

Ok....thanks.
Valinor123
Registered User
Posts: 1
Joined: Wed Apr 16, 2008 10:55 am

Re: Log me on automatically each visit, don't work

Post by Valinor123 »

Hi,
Also having a problem.

Cookie settings
Cookie domain: .d2fclan.eu
Cookie name: D2F[Clan]
Cookie path: /
Cookie security: disabled

www.d2fclan.eu/forum

thx :)
User avatar
darcie
Community Team Member
Community Team Member
Posts: 5546
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

Re: Log me on automatically each visit, don't work

Post by darcie »

Try a new cookie name that does not have brackets. Use simple name like d2f_clan.
phpBB on Facebook | Site Rules | Former Community Team leader
Stupidd0ne
Registered User
Posts: 4
Joined: Mon Mar 10, 2008 11:33 pm

Re: Log me on automatically each visit, don't work

Post by Stupidd0ne »

Automatic Login does not work on my site. I also occasionally get logged off when I refresh my browser.

Allow Persistent logins is turned on.

My Cookie Settings are as follows:
Cookie domain: limu.lunarmania.com
Cookie name: phpbb3_ak3mi
Cookie path: /
Cookie secure: disabled

Site Path: http://www.picture-wars.com/phpBB3/

I just checked my cookies and none of them seem to be from picture-wars.com. Also, none of them are named phpbb3_ak3mi
User avatar
darcie
Community Team Member
Community Team Member
Posts: 5546
Joined: Thu Jul 27, 2006 9:52 am
Location: Davis, California
Name: Darcie Griffin

Re: Log me on automatically each visit, don't work

Post by darcie »

Of course they're not set for picture-wars.com. You're making a cookie for someone visiting your site at limu.lunarmania.com. :?
How about changing that cookie domain to your actual forum location?
Cookie domain: .picture-wars.com <--note leading dot
Cookie name: phpbb3_ak3mi
Cookie path: / or /phpBB3
Cookie secure: disabled
phpBB on Facebook | Site Rules | Former Community Team leader
Stupidd0ne
Registered User
Posts: 4
Joined: Mon Mar 10, 2008 11:33 pm

Re: Log me on automatically each visit, don't work

Post by Stupidd0ne »

It looks like that worked! Thanks!

I'll get back to you if any other problems arise. Until then - awesome!

Return to “[3.0.x] Support Forum”