Full service web hosting, great prices and support. Starts at $1.99/month!
Results 1 to 4 of 4

Thread: session id in URL

  1. #1

    Default session id in URL

    We just uploaded our new website at www.totallycustomtruck.com . The first thing I noticed was the session id posted in the URL. When we tested the shopping cart at www.truckimprovement.com , we noticed the session id would appear only on the first linked page, after that it would drop off. In the admin panel, we have all "use search engine safe urls" set to true. The session options are set to /tmp, false, false, false, false, true, true.

    What do we need to do now?

  2. #2

    Default found the fix

    The key is in the proper designation of files and urls in the configure.php file. Some are meant to be relative and others must be absolute.

    Thanks for looking and 'hey' to all who intended to write!

  3. #3


    So wait, you got 'search engine safe url's' to work???? That's sweet. Pass this along to msaek with EXACTLY what you changed so he can put it in 1.8 or a patch to 1.7. There are ALOT of us that want that feature to work!


  4. #4

    Default here is the code with comments -- hope U find this helpful

    THIS IS THE FILE /catalog/includes/configure.php
    osCommerce, Open Source E-Commerce Solutions

    Copyright (c) 2003 osCommerce

    Released under the GNU General Public License

    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.yourstoreurl.com'); // this must be your full URL with NO ending forward-slash – this is your base URL
    define('HTTPS_SERVER', 'https://yourSSL_URL.com'); // this must be your full secure URL with NO ending forward-slash – this is your base SSL URL : e.g. our store shares SSL and is hosted by “https://SSL_host.com” (not real name) access to our shared SSL is “https://SSL_host.com/our_store.com/” -- in this section only register “https://SSL_host.com” as the base SSL URL
    define('ENABLE_SSL', true); // set to true for SSL
    define('HTTP_COOKIE_DOMAIN', 'www.yourstoreurl.com'); // your URL without the “http://” and no ending forward-slash
    define('HTTPS_COOKIE_DOMAIN', 'yourSSLurl.com'); // your SSL URL without the “http://” and no ending forward-slash
    define('HTTP_COOKIE_PATH', '/catalog/'); // absloute path for catalog not including your base URL works best
    define('HTTPS_COOKIE_PATH', '/yourstoreurl.com/catalog/'); // absloute path for SSL not including base URL works best
    define('DIR_WS_HTTP_CATALOG', '/catalog/'); // absloute path for catalog not including your base URL
    define('DIR_WS_HTTPS_CATALOG', '/yourstoreurl.com/catalog/'); // absloute path for SSL not including your base URL
    // the remaining items are left in default configuration -----------------------------------------
    define('DIR_WS_IMAGES', 'images/');
    define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
    define('DIR_WS_INCLUDES', 'includes/');
    define('DIR_WS_BOXES', DIR_WS_INCLUDES . 'boxes/');
    define('DIR_WS_FUNCTIONS', DIR_WS_INCLUDES . 'functions/');
    define('DIR_WS_CLASSES', DIR_WS_INCLUDES . 'classes/');
    define('DIR_WS_MODULES', DIR_WS_INCLUDES . 'modules/');
    define('DIR_WS_LANGUAGES', DIR_WS_INCLUDES . 'languages/');

    define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
    define('DIR_FS_CATALOG', '/home/virtual/site33/fst/var/www/html/catalog/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    // define our database connection --- set to your server -------------------------------------------------
    define('DB_SERVER', 'localhost'); // localhost is preferred for most servers
    define('DB_SERVER_USERNAME', 'username');
    define('DB_SERVER_PASSWORD', 'password');
    define('DB_DATABASE', 'yourstoreurl_db');
    define('USE_PCONNECT', 'false'); // don’t use pconnect if you share SSL
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
    // CLR 020605 defines needed for Product Option Type feature.
    define('TEXT_PREFIX', 'txt_');
    define('PPRODUCTS_OPTIONS_VALUE_TEXT_ID', 0); //Must match id for user defined "TEXT" value in db table TABLE_PRODUCTS_OPTIONS_VALUES

Similar Threads

  1. session id changes on return
    By ozenalp in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 04-11-2006, 05:10 AM
  2. Session ID
    By andyy15 in forum osCommerce 2.2 Modification Help
    Replies: 3
    Last Post: 08-15-2004, 11:40 PM
  3. Session Help
    By doggifts in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 10-21-2003, 07:09 PM
  4. SSL Errors, Session Cookie, Session Cache, NOVICE Problems?
    By hanool in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-07-2003, 11:49 AM
  5. session id
    By thorben in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 06-03-2003, 06:35 AM



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts