Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing Session ID from URL


Leeb2

Recommended Posts

Posted

I am on a shared server and am using shared SSL. How do I get my site's URLs to not display the session ID? Here are my settings:

 

Force Cookie Use: False

Check SSL Session ID: True

Check User Agent: True

Check IP Address: True

Prevent Spider Sessions: True

Recreate Session: True

 

Here is some of my configuration.php:

 

define('HTTP_SERVER', 'http://www.14store.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', 'https://14store.nozonenet.com/'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'www.14store.com');

define('HTTPS_COOKIE_DOMAIN', 'https://14store.nozonenet.com/');

define('HTTP_COOKIE_PATH', '/catalog/');

define('HTTPS_COOKIE_PATH', '/catalog/');

define('DIR_WS_HTTP_CATALOG', '/catalog/');

define('DIR_WS_HTTPS_CATALOG', '/catalog/');

 

define('DB_SERVER', 'mysql.nozonenet.com'); // eg, localhost - should not be empty for productive servers

 

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

Posted

Change:

 

define('HTTPS_COOKIE_DOMAIN', 'https://14store.nozonenet.com/');

 

to:

 

define('HTTPS_COOKIE_DOMAIN', '14store.nozonenet.com');

 

Also, if the 'www' in your URL is not valid, the cookie wont be set and visa versa.

 

Matti

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...