Cookies not working with forum on localhost

Get help with installation and running phpBB 3.1.x here. Please do not post bug reports, feature requests, or extension related questions here.
Ideas Centre
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: phpBB 3.1.x is at its End of Life stage and support will NOT be provided after July 1st, 2018.
Locked
Alpha Kitten
Registered User
Posts: 48
Joined: Sun May 24, 2015 9:17 am

Cookies not working with forum on localhost

Post by Alpha Kitten » Mon Jun 15, 2015 1:30 pm

Support Request Template
What version of phpBB are you using? phpBB 3.1.4
What is your board's URL? http://localhost/live_version/forum
Who do you host your board with? wampserver
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? Yes
Do you have any MODs installed? No
Do you have any extensions installed? Yes
What extensions do you have installed? Add User
Advanced BBCode Box
Ajax Shoutbox
Auto Database Backup
Board Announcements
Breadcrumb Menu
Last Post Avatar
Log new user
Online Status
Pages
Password Strength
phpBB 3.1 - NV Newspage Extension
PhpBB Countdown
Posting Template
Quickedit
Quick Login
Rank Post Styling
Referrers
Reset login attempts
User login redirect
What styles do you currently have installed? WyvernGaming
What language(s) is your board currently using? English
Which database type/version are you using? MySQL 5
What is your level of experience? New to PHP but not phpBB
What username can be used to view this issue? Any user
What password can be used to view this issue? No answer given
What actions did you take (updating your board; installing a MOD, style or extension; etc.) prior to this problem becoming noticeable? Downloaded forum from our online server to be able to update it offline before uploading to live.

All config files were edited and the backup was restored on my database.
Please describe your problem. cookies do not work

Example:
Login,
remember me.

Still get SID=numbers
Generated by SRT Generator

edit:

Image
https://camo.phpbb.com/a88b4e52f34bb841fcdbdfa31adf53ea3e9622c7/687474703a2f2f7075752e73682f6970476d672f633836373236376339632e706e67

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

Re: Cookies not working with forum on localhost

Post by Mick » Mon Jun 15, 2015 1:38 pm

Did you purge the cache or manually clear the /cache folder minus index.htm and .htaccess (if you can see it) after you transferred the board?
"The more connected we get the more alone we become" - Kyle Broflovski

Alpha Kitten
Registered User
Posts: 48
Joined: Sun May 24, 2015 9:17 am

Re: Cookies not working with forum on localhost

Post by Alpha Kitten » Mon Jun 15, 2015 1:41 pm

Mick wrote:Did you purge the cache or manually clear the /cache folder minus index.htm and .htaccess (if you can see it) after you transferred the board?
I manually cleared all in /cache except .htaccess and index.htm


EDIT:

I removed the dot infront of localhost

it works now.

The guide suggested that I have a dot infront of the url but is that only for domains?
Last edited by Alpha Kitten on Mon Jun 15, 2015 1:44 pm, edited 1 time in total.

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

Re: Cookies not working with forum on localhost

Post by Mick » Mon Jun 15, 2015 1:43 pm

Try 127.0.0.1 instead of localhost, what local server software are you using?
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
John connor
Registered User
Posts: 2329
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: Cookies not working with forum on localhost

Post by John connor » Mon Jun 15, 2015 7:40 pm

Yeah, that's what I figured, the dot. I have Xampp for testing and just used localhost. I also had to modify a few database entries so that I could load the site in Xampp. https://blog.systechforum.net/login-red ... ampserver/

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

Re: Cookies not working with forum on localhost

Post by Mick » Mon Jun 15, 2015 8:27 pm

I've used Wamp since Methuselah was a boy and never had to modify anything to get anything to work.
"The more connected we get the more alone we become" - Kyle Broflovski

User avatar
John connor
Registered User
Posts: 2329
Joined: Fri Nov 14, 2014 5:14 pm
Location: U S Of A
Name: Aaron
Contact:

Re: Cookies not working with forum on localhost

Post by John connor » Mon Jun 15, 2015 9:02 pm

I don't know why, but I was getting redirected to my live site using Xampp and discovered it was my site URL listed in the database. Once I changed that to localhost I was able to login without being redirected. Don't know why. I did everything the KB article talked about. Set the forum to localhost, etc before downloading a copy.

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

Re: Cookies not working with forum on localhost

Post by Lumpy Burgertushie » Tue Jun 16, 2015 1:34 am

if you have force url set to yes in the admin panel under server settings it will direct you to that url every time.
once you set that, then it is in the database so even if you copy everything down to your localhost, it will still be set to the live board.

you should not normally have to set that to yes and certainly not on a localhost.

drobert
I'm baaaaaccckkkk. still doing work on donation basis. PM your needs.

Premium phpBB 3.2 Styles by PlanetStyles.net

If a tree falls in the forest and nobody is there, does it make a sound?

Locked

Return to “[3.1.x] Support Forum”