osCmax v2.5 User Manual
Page 1 of 2 12 LastLast
Results 1 to 10 of 12

https:// not quite doing it for me yet!

This is a discussion on https:// not quite doing it for me yet! within the osCmax v1.7 Discussion forums, part of the osCmax v1.7 Forums category; Hi, I have 2 stores on two different servers. One (MS2.2)works works fine with https and I am trying to ...

      
  1. #1
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default https:// not quite doing it for me yet!

    Hi,

    I have 2 stores on two different servers. One (MS2.2)works works fine with https and I am trying to set up the other (latest MAX) also to work with the other server's https.

    I have the correct paths as I have checked with host support and I am sure I have made the same changes in both catalog and admin config.php files that are in the shop that works.

    What is happening..

    I get to the site with the usual dom http url. Log in fine using the https url then buy but when I select a product it reverts back to the http url. When I go to the check out it goes back to the https url again and I am led back to another login. When I log in again here I am told my cart is empty.

    This are my configs.........

    catalog/includes


    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
    define('HTTP_SERVER', 'http://www.starlitesong.com.au'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://secure5.myownserver.net/~starsong'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'www.starlitesong.com.au');
    define('HTTPS_COOKIE_DOMAIN', 'www.starlitesong.com.au');
    define('HTTP_COOKIE_PATH', '/catalog/');
    define('HTTPS_COOKIE_PATH', '/catalog/');
    define('DIR_WS_HTTP_CATALOG', '/catalog/');
    define('DIR_WS_HTTPS_CATALOG', '/catalog/');
    ---------------------------------

    admin/includes

    define('HTTP_SERVER', 'http://www.starlitesong.com.au'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://www.starlitesong.com.au');
    define('HTTPS_CATALOG_SERVER', 'https://secure5.myownserver.net/~starsong');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/starlite/public_html/catalog/'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/home/starsong/public_html/catalog/admin/'); // absolute pate required
    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    define('DIR_FS_CATALOG', '/home/starsong/public_html/catalog/'); // absolute path required

    Thanks


  2. #2
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    Methinks it is a cookie / session issue.
    With a shared ssl it is recommended to use sessions instead of cookies.
    Look in your admin/configuration/
    In there you can define to use sessions & all should be well.
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  3. #3
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default

    Thanks Neil ..

    I have the /tmp as the default dir, and there is a dir with that name on site
    Force Cookies FALSE
    Session ID ON
    User FALSE
    IP FALSE
    Spider TRUE
    Recreate TRUE

    In BOTH configures I have the SSL to true with the https URL where it should be.

    Yet I still get the 2nd Login page when checking out.

    Strange!!



  4. #4
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    These values are stored in your database.
    Easiest way is to log into your online admin through your browser.
    yoursite.com.au/admin
    Go to configuration/sessions & modify there.
    If it is your first time in your online admin - see one of Michaels 'pinned' posts for a walk through.
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  5. #5
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default

    Thanks again,

    Yes I made those changes in Admin, however I still get back to the Login a second time when using https. Regular http is fine right to Confirmation.

    I also noticed...

    When in https after the second log in I don't get to the shipping page I go straight to the Payment area



  6. #6
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    Oh Dear,
    Empty your browser cache & Refresh. Have a look if you are loosing your session id.
    That is probably why you are having to log back in.
    The session id is that long item that attaches itself onto the end of your URL eg:
    ?osCsid=2b5485191a43e5b950b26c52a2be946e
    Do the last 2 lines of both configure.php files look like this:
    Code:
    define('USE_PCONNECT', 'false'); // use persistent connections?
      define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
    If they do - post the settings in your admin > configuration > sessions
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  7. #7
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default

    Thanks again.. I appreciate your help..

    I did a clear browser cache and have tried both IE and NS with the same results.

    After clearing I cannot get to the https url with a 'No page found' result, but unless you see why below, it could be the host with maintenance. I will check this.. (Edit - I have checked and they are down due to formmail spam o'load)

    Anyway, this is what I have..


    Session Directory /tmp
    Force Cookie Use False
    Check SSL Session ID True
    Check User Agent False
    Check IP Address False
    Prevent Spider Sessions True
    Recreate Session True
    Also....


    catalog/configure

    define('HTTP_SERVER', 'http://www.starlitesong.com.au'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://secure5.myownserver.net/~starsong'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'starlitesong.com.au');
    define('HTTPS_COOKIE_DOMAIN', 'starlitesong.com.au');
    define('HTTP_COOKIE_PATH', '/catalog/');
    admin/configure

    define('HTTP_SERVER', 'http://www.starlitesong.com.au'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://www.starlitesong.com.au');
    define('HTTPS_CATALOG_SERVER', 'https://secure5.myownserver.net/~starsong');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/starsong/public_html/catalog/'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/home/starsong/public_html/catalog/admin/'); // absolute pate required
    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    define('DIR_FS_CATALOG', '/home/starsong/public_html/catalog/'); // absolute path required
    Thanks

    [/quote]

  8. #8
    Active Member neil's Avatar
    Join Date
    Nov 2002
    Posts
    248
    Rep Power
    10


    Default

    The difference I have is this:
    Code:
    Session Directory  	/tmp  	 
    Force Cookie Use 	False 	 
    Check SSL Session ID 	False 	 
    Check User Agent 	False 	 
    Check IP Address 	False 	 
    Prevent Spider Sessions 	True 	 
    Recreate Session 	True
    I can't see www.starlitesong.com.au in my browser? Is this online or are you working locally
    HTH
    Neil
    www.12website.com

    "You can have everything in life that you want if you will just help enough other people get what they want."
    Zig Ziglar

  9. #9
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default

    Thanks again..

    I have changed the Sessions to read like yours but I have been informed the secure server is down due to them fixing the spam problem. Hopefully I can try in a few hours again.

    Thanks


  10. #10
    Active Member
    Join Date
    Nov 2002
    Location
    Sydney
    Posts
    242
    Rep Power
    10


    Default

    Hi,

    With latest MAX Everything works fine except when I still cannot get https to work.

    After I log in as customer I go here and choose the product. Note session ID.

    http://www.starliterecords.com.au/ca...2e2fde50a5aaaa

    When I 'Add to Cart' I go here - Note NO session ID

    http://www.starliterecords.com.au/ca...pping_cart.php

    When I click 'Checkout Button' I go here to new Login Page. Note NEW Session ID.

    https://secure5.myownserver.net/~ID/...653a7a22b5796c

    >>>>> Here is my CATALOG configure.php

    define('HTTP_SERVER', 'http://www.starliterecords.com.au'); // eg, http://localhost - should not be empty for productive servers
    define('HTTPS_SERVER', 'https://secure5.myownserver.net/~ID'); // eg, https://localhost - should not be empty for productive servers
    define('ENABLE_SSL', true); // secure webserver for checkout procedure?
    define('HTTP_COOKIE_DOMAIN', 'starliterecords.com.au');
    define('HTTPS_COOKIE_DOMAIN', 'starliterecords.com.au'); ??? Should it be https address above
    define('HTTP_COOKIE_PATH', '/catalog/');
    define('HTTPS_COOKIE_PATH', '/catalog/'); ????? Should it be https address above
    define('DIR_WS_HTTP_CATALOG', '/catalog/');
    define('DIR_WS_HTTPS_CATALOG', '/catalog/');


    >>>> Here is my ADMIN configure.php

    define('HTTP_SERVER', 'http://www.starliterecords.com.au'); // eg, http://localhost - should not be empty for productive servers
    define('HTTP_CATALOG_SERVER', 'http://www.starliterecords.com.au');
    define('HTTPS_CATALOG_SERVER', 'https://secure5.myownserver.net/~ID');
    define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
    define('DIR_FS_DOCUMENT_ROOT', '/home/starlite/public_html/catalog/'); // where the pages are located on the server
    define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
    define('DIR_FS_ADMIN', '/home/starlite/public_html/catalog/admin/'); // absolute pate required
    define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
    define('DIR_FS_CATALOG', '/home/starlite/public_html/catalog/'); // ab

    >>>> Admin SESSIONS

    Session Directory /tmp
    Force Cookie Use False
    Check SSL Session ID False
    Check User Agent False
    Check IP Address False
    Prevent Spider Sessions True
    Recreate Session True

Page 1 of 2 12 LastLast

Similar Threads

  1. Prev/Next and Https
    By humanode in forum osCommerce 2.2 Discussion
    Replies: 0
    Last Post: 11-24-2005, 08:46 PM
  2. https error
    By wheelie in forum osCommerce 2.2 Installation Help
    Replies: 6
    Last Post: 07-23-2004, 02:34 AM
  3. https-problem
    By springbank in forum osCommerce 2.2 Installation Help
    Replies: 1
    Last Post: 01-05-2004, 08:31 AM
  4. when in https....
    By Anonymous in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 12-28-2002, 06:36 PM
  5. Too much https: ??
    By sheikyerbouti in forum osCommerce 2.2 Installation Help
    Replies: 2
    Last Post: 12-11-2002, 05:40 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
  •