Cookies must be enabled to purchase online

Open to all! Ask other shopowners for help.
14Steve14
Senior Contributor
Posts: 922
Joined: Fri Oct 25, 2019 7:01 pm
Phoenix Version: v1.0.9.1
Has thanked: 17 times
Been thanked: 103 times

Re: Cookies must be enabled to purchase online

Post by 14Steve14 »

We occasionally get a similar problem.

Try using a private/incognito browser. Just click on the browser settings to find it in the dropdown that opens. This should load the browser without the use of any cookies. If everything works as it should you need to clear the cache and saved files in the browser you are using.


Join The Code Co-op to get access to your library in the Code Co-op Forum
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

I will put that file back into that directory.

const COOKIE_OPTIONS = [
'lifetime' => 0,
'domain' => 'neperformancemustang.com',
'path' => '/catalog/',
'samesite' => 'Lax',
'secure' => true,
];

It appears the site is working properly now. This same behavior occurs last week as well.
azpro
Contributor
Posts: 177
Joined: Fri Nov 06, 2020 8:25 am
Phoenix Version: v1.1.0.6
Has thanked: 30 times
Been thanked: 34 times

Re: Cookies must be enabled to purchase online

Post by azpro »

I checked your website ... Have put product in cart .. seems okay!
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Cookies must be enabled to purchase online

Post by raiwa »

I still get the cookie page when trying to checkout (not logged in) and getting redirected to login page . Tried with firefox/windows and safari/ipad
cwh2000 wrote: Thu Aug 21, 2025 12:12 pm const COOKIE_OPTIONS = [
'lifetime' => 0,
'domain' => 'neperformancemustang.com',
'path' => '/catalog/',
'samesite' => 'Lax',
'secure' => true,
];
You should use:
'domain' => '.neperformancemustang.com',

Note the dot in front of ".neperformancemustang.com"

This covers all variants: www.neper..., neper... etc.
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

Thanks raiwa I added the . in front of the domain.
raiwa
Certified Developer
Posts: 1640
Joined: Sat Dec 21, 2019 8:08 am
Phoenix Version: 1.1.0.6
Has thanked: 70 times
Been thanked: 152 times

Re: Cookies must be enabled to purchase online

Post by raiwa »

I do not get the cookie page any more!
Public Phoenix Change Log Cheat Set on Google Sheets
https://docs.google.com/spreadsheets/d/ ... sp=sharing

Need Help?viewtopic.php?f=10&t=27
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

The issue is occurring again and even in Incognito mode the checkout doesn't work.
azpro
Contributor
Posts: 177
Joined: Fri Nov 06, 2020 8:25 am
Phoenix Version: v1.1.0.6
Has thanked: 30 times
Been thanked: 34 times

Re: Cookies must be enabled to purchase online

Post by azpro »

Do you have a tool to compare your local files to files on server?

If so - check for differences - check especially the files with latest dates file-last-modified ...
User avatar
burt
Core Team
Posts: 4551
Joined: Tue Oct 29, 2019 9:37 am
Phoenix Version: v1.1.0.8
Has thanked: 252 times
Been thanked: 412 times

Re: Cookies must be enabled to purchase online

Post by burt »

Check again your LIVE /includes/configure.php file to *ensure* it has that `.` at the domain.
I am not here to build for you.
I am here to build with you. Let's help each other.
cwh2000
Member
Posts: 60
Joined: Fri Jul 30, 2021 10:21 am
Phoenix Version: v1.0.9.9

Re: Cookies must be enabled to purchase online

Post by cwh2000 »

burt wrote: Fri Aug 22, 2025 2:17 pm Check again your LIVE /includes/configure.php file to *ensure* it has that `.` at the domain.
Yes

const COOKIE_OPTIONS = [
'lifetime' => 0,
'domain' => '.neperformancemustang.com',
'path' => '/catalog/',
'samesite' => 'Lax',
'secure' => true,
];


Join The Code Co-op to get access to your library in the Code Co-op Forum
Post Reply