Having migrated our site onto a new server, admin keeps logging out. This only happens when SSL admin is enabled - non-SSL admin is fine.
There appears to be a major clue in the fact that all of the internal links within the admin UI appear to have been constructed with the non-SSL domain name.
In our admin/includes/configure.php, we have:
PHP Code:
define('HTTP_SERVER', 'http://www.example.com');
define('HTTPS_SERVER', 'https://secure.example.com');
define('HTTP_CATALOG_SERVER', 'http://www.example.com');
define('HTTPS_CATALOG_SERVER', 'https://secure.example.com');
// Use secure webserver for catalog module and/or admin areas?
define('ENABLE_SSL_CATALOG', 'true');
define('ENABLE_SSL_ADMIN', 'true');
and in our includes/configure.php, we have
PHP Code:
define('HTTP_SERVER', 'http://www.faircake.co.uk');
define('HTTPS_SERVER', 'https://secure.faircake.co.uk');
// Use secure webserver for checkout procedure?
define('ENABLE_SSL', 'true');
If I go to www.example.com/admin/, I get redirected to secure.example.com/admin/ for login. However, once I've logged in, all the links in the admin are to urls starting www.example.com/admin/, not secure.example.com/admin/, and when I click on any of them I get sent back to the login page.
This is with Zen Cart 1.3.9h. The config worked fine with the old server, and aside from this issue the site is live and well (with non-SSL admin). I've done the admin session caching fix, though I had to do it manually in PHPMyAdmin.
Bookmarks