osCmax v2.5 User Manual
Results 1 to 3 of 3

Session ID / osCsid missing after moving from ms1 to ms2

This is a discussion on Session ID / osCsid missing after moving from ms1 to ms2 within the osCommerce 2.2 Installation Help forums, part of the osCommerce 2.2 Forums category; hi all, i am really frustrated now. i've done an upgrade from osc2.2 ms1 to ms2. i first ftp'd the ...

      
  1. #1
    MG
    MG is offline
    New Member
    Join Date
    Aug 2003
    Posts
    9
    Rep Power
    0


    Default Session ID / osCsid missing after moving from ms1 to ms2

    hi all,
    i am really frustrated now. i've done an upgrade from osc2.2 ms1 to ms2. i first ftp'd the ms2 to my host and have done the installation and did all the configurations to be the same as my old site. in then renamed the old catalog directory to /old_shop/ and the new one to /shop/ (as it was before with the previous site). EVERYTHING is working fine except that the session id is missing which is resulting in myself/clients not being able to log in or the shopping cart to be emptied. i've looked through all the posts and 99% of all the time the problem is with the configure.php file. i've configured it exactly the same as it was before (although you can configure cookies etc with ms2). i use a shared https server and i do save my sessions in mysql. my config file:

    define('HTTP_SERVER', 'http://www.cdx.co.za'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://velocity.secureguards.com/~cdx/'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'www.cdx.co.za');
    define('HTTPS_COOKIE_DOMAIN', 'velocity.secureguards.com');
    define('HTTP_COOKIE_PATH', '/shop/');
    define('HTTPS_COOKIE_PATH', '/~cdx/shop/');
    define('DIR_WS_HTTP_CATALOG', '/shop/');
    define('DIR_WS_HTTPS_CATALOG', '/shop/');
    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/cdx/public_html/shop/');
    define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
    define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

    // define our database connection
    define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers
    define('DB_SERVER_USERNAME', 'cdx_shop');
    define('DB_SERVER_PASSWORD', 'xxxxxx');
    define('DB_DATABASE', 'cdx_shop');
    define('USE_PCONNECT', 'true'); // use persistent connections?
    define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

    i have played with the path names and none has solved the problem. sometimes i do get a session id after i have cleared my computers cache but not on all the links.

    everything worked before...why not now?!

    please help!

    thanks
    Marnitz
    www.cdx.co.za
    Marnitz Engelbrecht
    South Africa

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,699
    Rep Power
    22


    Default

    define('HTTPS_SERVER', 'https://velocity.secureguards.com/~cdx/');
    ....
    define('HTTPS_COOKIE_PATH', '/~cdx/shop/');


    Thus cookies is stored in: https://velocity.secureguards.com/~cdx//~cdx/shop/ ?

    Try:

    define('HTTPS_SERVER', 'https://velocity.secureguards.com/~cdx');


    If that does not full work then try

    define('HTTPS_COOKIE_PATH', './~cdx/shop/');
    or
    define('HTTPS_COOKIE_PATH', '/shop/');

    Good luck
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    MG
    MG is offline
    New Member
    Join Date
    Aug 2003
    Posts
    9
    Rep Power
    0


    Default

    hi jpf, thanks for the reply.
    i've tried that and it is still not working.

    what iv'e noticed is that links that are in the html part of my index.php file (refer to my intro text and hover over the buy, sell or contact links) does have the session id but ALL the other links, eg. My Account, Cart Contents etc does NOT have the session id?! i think this has something to do with the problem.

    what else can i try??

    thanks!
    Marnitz Engelbrecht
    South Africa

Similar Threads

  1. moving to a different host
    By Christy in forum osCmax v2 Installation issues
    Replies: 5
    Last Post: 05-22-2006, 04:46 PM
  2. Moving between Servers
    By auxone in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 10-31-2004, 11:18 AM
  3. Moving a website
    By Zych in forum osCmax v1.7 Discussion
    Replies: 6
    Last Post: 08-24-2004, 09:32 AM
  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. Links not working with osCsid session id
    By MG in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 09-02-2003, 10:06 PM

Bookmarks

Posting Permissions

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