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

Session problems using shared SSL

This is a discussion on Session problems using shared SSL within the osCMax v1.7 Installation forums, part of the osCmax v1.7 Forums category; When I login using the Webmakers login box or via the standard login page the login box correctly disappears and ...

      
  1. #1
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default Session problems using shared SSL

    When I login using the Webmakers login box or via the standard login page the login box correctly disappears and 'log-off' appears on the top menu bar, and the url has changed to that of the shared secure server. But as soon as I navigate elsewhere on the site it thinks I'm logged off.

    I've had the osc standard version working ok with the same shared secure server and similar config settings. Settings as follows:

    Administration > Configuration > Sessions:

    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

    configure settings:

    define('HTTP_SERVER', 'http://www.<domain>');
    define('HTTPS_SERVER', 'https://dnslinux.co.uk/~<package name>');
    define('ENABLE_SSL', true);
    define('HTTP_COOKIE_DOMAIN', 'www.<domain>');
    define('HTTPS_COOKIE_DOMAIN', 'www.<domain>');
    define('HTTP_COOKIE_PATH', '/<catalog dir>/');
    define('HTTPS_COOKIE_PATH', '/<catalog dir>/');
    define('DIR_WS_HTTP_CATALOG', '/<catalog dir>/');
    define('DIR_WS_HTTPS_CATALOG', '/<catalog dir>/');

    define('USE_PCONNECT', 'false');
    define('STORE_SESSIONS', 'mysql');

    If I set ENABLE_SSL to false then the login works ok. Why should the login on the standard MS2 version work ok with shared SSL but MAX doesn't?

  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

    Set "force cookie use=true"
    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
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    I don't think 'force cookies' will work with shared SSL? The osCommerce Knowledge Base document on Security and Privacy at http://www.oscommerce.info/kb/osComm...lementations/4 was helpful.

    As the cookie is set on the top level domain of the web server, the secured https server must also exist on the same domain.

  4. #4
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,907
    Rep Power
    568


    Default

    Yes, force cookies will not work with shared ssl.

    This is most likely a problem with the sessions settings in the admin.

    The ssl core code in max and ms2 is identical, so look elsewhere for the problem, like the loginbox or your configuration files and make sure your sessions settings are identical.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    Stay Up To Date with everything osCMax:
    Free osCmax Newsletters - Security notices, New Releases, osCMax News
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

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


    Default

    Sorry did not see the shared SSL
    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!

  6. #6
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    I don't know if this was the problem but in configure.php I removed the www's in the settings for:

    HTTP_SERVER
    HTTP_COOKIE_DOMAIN
    HTTPS_COOKIE_DOMAIN

    ( I had http://www.domain.co.uk now I have http://domain.co.uk) and it's working ok now.

    Thanks.

  7. #7
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    The catalogue is working but it asks for another login before going through the checkout, which is as it gets directed to https.

    What's the recommended setup for the admin section regarding SSL? For a live standard ocs MS2 store I have changed the href to the orders page to be SSL. For this MAX installation I've removed the www's from the configure.php file and I've added the SSL parameter to the call on function tep_href_link in orders.php for the link on the 'edit' button, but as soon as it goes to https it asks me to login again and then loops back to the orders summary rather than the detail page.

    Should therefore the whole of the admin section be directed to https?

  8. #8
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    The difference between a standard ocs shop I run and the new one with oscMAX is that the login on the standard osc install is via an href link which connects to the shared SSL, where as the Webmakers login box I'm using with the MAX install is on the default homepage and I assumed was not loaded via https. However reading the code if I understand it correctly the loginbox is posting to the login page with an action to process via SSL.

    The problem is I don't see why it is requiring a second login at the checkout?

  9. #9
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    I think it's solved, think it was the cookie paths in the catalog configure.php, I've changed them to include 'http://' as follows:
    define('HTTP_COOKIE_DOMAIN', 'http://<domain>.co.uk');
    define('HTTPS_COOKIE_DOMAIN', 'http://<domain>.co.uk');
    define('HTTP_COOKIE_PATH', '/');
    define('HTTPS_COOKIE_PATH', '/');

  10. #10
    Member
    Join Date
    Aug 2003
    Location
    Southampton UK
    Posts
    63
    Rep Power
    0


    Default

    Although the problem SSL is solved for the catalog, I still have an issue with the Admin section. When I login to the Admin section it automatically uses https and once the login details are transmitted the index page is back to http. When editing orders I want to be using https. For a standard version of osc ms2 I changed the code in the orders page to set the href to use SSL and it worked ok, but with osmax I find that the same amendment causes the system to return to the admin login page.

    Can anyone please advise. I've checked the settings in configure.php and they appear to be ok (as standard there is no ref to cookie paths though).

Page 1 of 2 12 LastLast

Similar Threads

  1. shared SSL Help Please!
    By lil-raskals in forum osCommerce 2.2 Modification Help
    Replies: 2
    Last Post: 09-30-2004, 09:30 PM
  2. Session Problems
    By stevenstevensteven in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 12-19-2003, 04:45 PM
  3. Database Session tracking problems
    By Anonymous in forum osCmax v1.7 Discussion
    Replies: 1
    Last Post: 12-03-2003, 01:54 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. Shared SSL Help
    By Anonymous in forum osCommerce 2.2 Installation Help
    Replies: 13
    Last Post: 03-20-2003, 12:42 AM

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
  •