Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login Expires when going from https (shared)


Guest

Recommended Posts

When I log-in I go to my shared SSL site and enter all the details. But as soon as I go to browse the shopping cart it goes back to http, logs me out and prsents me with the login screen.

 

Here is my configure file

define('HTTP_SERVER', 'http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers

  define('HTTPS_SERVER', 'https://www.securedomain.com/secure/mydomain'); // eg, https://localhost - should not be empty for productive servers

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

  define('HTTP_COOKIE_DOMAIN', 'www.mydomain.com');

  define('HTTPS_COOKIE_DOMAIN', 'www.securedomain.com/secure/mydomain');

  define('HTTP_COOKIE_PATH', '/');

  define('HTTPS_COOKIE_PATH', '/');

  define('DIR_WS_HTTP_CATALOG', '/');

  define('DIR_WS_HTTPS_CATALOG', '/');

  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', '/var/www/html/secure/mydomain/');

  define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

  define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

Link to comment
Share on other sites

I reverted my store to an earlier backup and it works no problems. Since this backup I have installed the following mods

 

X-Sell-v2-2 - MS2

product_availability_v1.03

admin_21

eway_pay_module

 

So I assume it is one of these that has broken it. I will re-install each mod and test in between to see if I can track down the problem.

 

Dan, do you have any of these Mods installed?

Link to comment
Share on other sites

  • 3 weeks later...

No I don't have any of these mods installed.... I have tried all sorts of combinations in my config file and still have the same problem.

 

I have heaps of mods installed but nothing that I would assume change the way OSC deals with logins etc.... I mean they are not related in any way. I just dunno....

Dan

Link to comment
Share on other sites

Try:

define('HTTPS_COOKIE_DOMAIN', 'www.securedomain.com');
define('HTTPS_COOKIE_PATH', '/secure/mydomain');

 

The solution is somewhere in this direction.

 

And try this (from Dylan Downhill):

I noticed something in the code that compares the server name using some old syntax.

in admin/includes/classes/sessions.php the line

if (trim($url['host']) != $GLOBALS['SERVER_NAME']) {

 

Should probably be:

if (trim($url['host']) != $_SERVER['SERVER_NAME']) {

It worked for me!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...