Forums / General Questions / change cookie domain name

change cookie domain name

Locked

Views: 4,312

Results 21 to 21 of 21
This thread is locked. New replies are disabled.
30 Nov 2010, 2:16 AM
#21
Join Date:
Nov 2007
Location:
oregon
Posts:
70
Plugin Contributions:
0

change cookie domain name

Thank You Worked like a charm! :smile: Have to do the override for a sub.domain.com

wilt:

Hi,

No its not a bug !!!!!

There are a number of ways you can manipulate that actual domain that Zen Cart uses to store cookies.

Firstly in admin->configuration->sessions

see the Cookie Domain option. This can be set to FALSE to not use the fully qualified domain name.

If this does not help, you can also set an override option, such that you can define a custom cookie domain just for your site.

in includes/extra_configures create an override file, and in that set some defines as below

define('HTTP_COOKIE_DOMAIN', 'mydomain.com');
define('HTTPS_COOKIE_DOMAIN', 'mydomain.com');

You may also need to force the cookie into the root path of the domain as well, again there are settings in admin to help with this.

admin->configuration->sessions