Results 1 to 7 of 7
  1. #1
    Join Date
    Dec 2005
    Posts
    7
    Plugin Contributions
    0

    Default SSL Admin logs out

    Admin logs out when any menu item is clicked in SSL mode immediately after log-in. (Admin works find with SSL set to false.)
    I've used Godady chained certificates and self signed certs with the same result.

    This is a fresh unmodified (default installed) zen-cart test store (www.torcar.co)

    Any ideas on what could be changed to get the admin to work in SSL mode would be appreciated.

    Thank you.

    Mac Snow Leopard Server 10.6.7
    Database: MySQL 5.0.91-log
    PHP Version: 5.3.4 (Zend: 2.3.0)
    HTTP Server: Apache/2.2.17 (Unix) mod_ssl/2.2.17 OpenSSL/0.9.8l PHP/5.3.4
    PHP Safe Mode: Off
    Zen Cart 1.3.9h
    Server OS: Darwin 10.7.0

  2. #2
    Join Date
    Jan 2004
    Location
    N of San Antonio TX
    Posts
    9,107
    Plugin Contributions
    11

    Default Re: SSL Admin logs out

    Might want to check the cache folder to see if there are any debug files and check the configure.php to make sure all the references to ssl are correctly entered.

  3. #3
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: SSL Admin logs out

    Well, it's not surprising you have problems staying logged in to https. Your website is on the main domain and for some weird reason you've put the SSL connection on a sub-domain. The cookies won't match and so you'll get logged out.

    Put the site on one of those two - main domain or sub-domain, but don't try to mix them.

    Vger

  4. #4
    Join Date
    Dec 2005
    Posts
    7
    Plugin Contributions
    0

    Default Re: SSL Admin logs out

    Thank you for your reply. I understand what you are saying. Using the OS X Server Admin, I have not been able to find or figure out out how to do this. Do you have a suggestion or can you point to to a resource that gives a step by step. (Apple documentation is worthless to the novice web admin IMO)

    Thank you.

  5. #5
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: SSL Admin logs out

    I can't help you with the vagaries of a Mac Server - other than to wonder why anyone would want to use one.

    Installing an offline Linux server (Intranet) on a Mac told me all I wanted to know about the problems of running a server on a Mac. Every time Apple downloaded an update to the OS (OSX) it screwed up all of the server permissions.

    Sorry I can't help any more, but I have at least pinpointed the problem for you.

    Vger

  6. #6
    Join Date
    Dec 2005
    Posts
    7
    Plugin Contributions
    0

    Default Re: SSL Admin logs out

    Problem fixed.

    In the admin configure.php file the "www." was removed from the define (HTTP_SERVER','http://www.example.com');). So http://www.example.com became http://example.com.
    The sub domain was used for the HTTPS address. HTTPS_SERVER was changed to 'https://store.example.com'
    Enable _SSL_CATALOG was set to true
    Enable _SSL_ADMIN was set to true

    define('HTTP_SERVER', 'http://example.com');
    define('HTTPS_SERVER', 'https://store.example.com');
    define('HTTP_CATALOG_SERVER', 'http://example.com');
    define('HTTPS_CATALOG_SERVER', 'https://store.example.com');

    // Use secure webserver for catalog module and/or admin areas?
    define('ENABLE_SSL_CATALOG', 'true');
    define('ENABLE_SSL_ADMIN', 'true');

    The "www." was removed from the define('HTTP_SERVER', 'http://example.com'); in the configure.php file and changed to :

    define('HTTP_SERVER', 'http://example.com');
    define('HTTPS_SERVER', 'https://store.example.com');

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

    Everything works!

  7. #7
    Join Date
    Nov 2004
    Location
    Norfolk, United Kingdom
    Posts
    3,036
    Plugin Contributions
    2

    Default Re: SSL Admin logs out

    Sort of makes sense - because on most systems the www. address is a subdomain of the http:// address

    Vger

 

 

Similar Threads

  1. SSL Admin logs out
    By paul-h in forum Basic Configuration
    Replies: 19
    Last Post: 31 Oct 2010, 05:45 AM
  2. 1.3.9d visiting non-SSL page logs user out
    By decartwr in forum Upgrading from 1.3.x to 1.3.9
    Replies: 1
    Last Post: 20 Jun 2010, 12:16 PM
  3. Admin logs out
    By paul-h in forum Basic Configuration
    Replies: 2
    Last Post: 21 May 2010, 02:30 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR