Cookie Trouble After Moving Servers

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
User avatar
Noxwizard
Support Team Leader
Support Team Leader
Posts: 10550
Joined: Mon Jun 27, 2005 8:41 pm
Location: Texas, USA
Name: Patrick Webster
Contact:

Re: Cookie Trouble After Moving Servers

Post by Noxwizard »

It's an issue with 5.3.x and versions of phpBB below 3.0.6: Bug ticket So yes, you will need to update to fix it.
[Support Template] - [Read Before Posting] - [phpBB Knowledge Base]
Do not contact me for private support, please share the question in our forums.
sparky2
Registered User
Posts: 8
Joined: Wed Aug 19, 2009 5:20 am

Re: Cookie Trouble After Moving Servers

Post by sparky2 »

Success! I hacked the old includes/session.php page on line 245 with this:

Code: Select all

$this->cookie_data['u'] = $_COOKIE[$config['cookie_name'] . '_u'];
$this->cookie_data['k'] = $_COOKIE[$config['cookie_name'] . '_k'];
$this->session_id = $_COOKIE[$config['cookie_name'] . '_sid'];
...and as ugly as that is, it works.

I'm a little overwhelmed about doing the upgrade but I have been reading a bit about the automatic merging so I'll try that on a test install and see how it turns out.

Thank you all for your assistance. You've been incredibly helpful to a poor lost soul.
User avatar
Erik Frèrejean
Former Team Member
Posts: 9899
Joined: Tue Oct 09, 2007 9:09 am
Location: The Netherlands, 3.0.x Support Forum
Name: Erik Frèrejean
Contact:

Re: Cookie Trouble After Moving Servers

Post by Erik Frèrejean »

A better solution is to apply the phpBB 3.0.6 patch, because this work around still doesn't allow the request_var function to read from the cookie array which in turn potentially breaks other parts of phpBB/MODs.
You just need to apply the two diffs attached to the original ticket.
Support Toolkit | Support Request Template | Knowledge Base | phpBB 3.0.x documentation
I don't give support via PM or IM! (all unsolicited pms will be trashed!)
Locked

Return to “[3.0.x] Support Forum”