Configuration ≫ Sessions
Session Directory
Key: SESSION_WRITE_DIRECTORY
Path: Configuration > Sessions
Description: This should point to the folder specified in your DIR_FS_SQL_CACHE setting in your configure.php files.
Path: Configuration > Sessions
Description: This should point to the folder specified in your DIR_FS_SQL_CACHE setting in your configure.php files.
Cookie Domain
Key: SESSION_USE_FQDN
Path: Configuration > Sessions
Description: If True the full domain name will be used to store the cookie, e.g. www.mydomain.com. If False only a partial domain name will be used, e.g. mydomain.com. If you are unsure about this, always leave set to true.
Path: Configuration > Sessions
Description: If True the full domain name will be used to store the cookie, e.g. www.mydomain.com. If False only a partial domain name will be used, e.g. mydomain.com. If you are unsure about this, always leave set to true.
Force Cookie Use
Key: SESSION_FORCE_COOKIE_USE
Path: Configuration > Sessions
Description: Force the use of sessions when cookies are only enabled.
Path: Configuration > Sessions
Description: Force the use of sessions when cookies are only enabled.
Check SSL Session ID
Key: SESSION_CHECK_SSL_SESSION_ID
Path: Configuration > Sessions
Description: Validate the SSL_SESSION_ID on every secure HTTPS page request.
Path: Configuration > Sessions
Description: Validate the SSL_SESSION_ID on every secure HTTPS page request.
Check User Agent
Key: SESSION_CHECK_USER_AGENT
Path: Configuration > Sessions
Description: Validate the clients browser user agent on every page request.
Path: Configuration > Sessions
Description: Validate the clients browser user agent on every page request.
Check IP Address
Key: SESSION_CHECK_IP_ADDRESS
Path: Configuration > Sessions
Description: Validate the clients IP address on every page request.
Path: Configuration > Sessions
Description: Validate the clients IP address on every page request.
Prevent Spider Sessions
Key: SESSION_BLOCK_SPIDERS
Path: Configuration > Sessions
Description: Prevent known spiders from starting a session.
Path: Configuration > Sessions
Description: Prevent known spiders from starting a session.
Recreate Session
Key: SESSION_RECREATE
Path: Configuration > Sessions
Description: Recreate the session to generate a new session ID when the customer logs on or creates an account (PHP >=4.1 needed).
Path: Configuration > Sessions
Description: Recreate the session to generate a new session ID when the customer logs on or creates an account (PHP >=4.1 needed).
IP to Host Conversion Status
Key: SESSION_IP_TO_HOST_ADDRESS
Path: Configuration > Sessions
Description: Convert IP Address to Host Address
Note: on some servers this can slow down the initial start of a session or execution of Emails
Path: Configuration > Sessions
Description: Convert IP Address to Host Address
Note: on some servers this can slow down the initial start of a session or execution of Emails
Use root path for cookie path
Key: SESSION_USE_ROOT_COOKIE_PATH
Path: Configuration > Sessions
Description: Normally Zen Cart will use the directory that a store resides in as the cookie path. This can cause problems with some servers. This setting allows you to set the cookie path to the root of the server, rather than the store directory. It should only be used if you have problems with sessions. Default Value = False
Changing this setting may mean you have problems logging into your admin, you should clear your browser cookies to overcome this.
Path: Configuration > Sessions
Description: Normally Zen Cart will use the directory that a store resides in as the cookie path. This can cause problems with some servers. This setting allows you to set the cookie path to the root of the server, rather than the store directory. It should only be used if you have problems with sessions. Default Value = False
Changing this setting may mean you have problems logging into your admin, you should clear your browser cookies to overcome this.
Add period prefix to cookie domain
Key: SESSION_ADD_PERIOD_PREFIX
Path: Configuration > Sessions
Description: Normally Zen Cart will add a period prefix to the cookie domain, e.g. .www.mydomain.com. This can sometimes cause problems with some server configurations. If you are having session problems you may want to try setting this to False. Default Value = True
Path: Configuration > Sessions
Description: Normally Zen Cart will add a period prefix to the cookie domain, e.g. .www.mydomain.com. This can sometimes cause problems with some server configurations. If you are having session problems you may want to try setting this to False. Default Value = True
Still have questions? Use the Search box in the upper right, or try the full list of FAQs. If you can't find it there, head over to the
Zen Cart support forum
and ask there in the appropriate subforum.
In your post, please include your Zen Cart and PHP versions, and a link to your site.
Is there an error or omission on this page? Please post to General Questions on the support forum. Or, if you'd like to open a pull request, just review the guidelines and get started.
You can even PR right here.
Last modified January 28, 2024 by Scott C Wilson (a7afbb0).