Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Returning Customer Login Problem


Guest

Recommended Posts

I've just installed OS commerce 2.2, installation went fine but I'd really appreciate some help on a problem I'm having with customer login.

 

I'm using a shared SSL and the url for the login page is:

 

https://server6.simplewebserver.co.uk/~flyi...talog/login.php?

 

This works fine until you enter the username and password. Then, instead of redirecting to:

 

https://server6.simplewebserver.co.uk/~flyi...talog/index.php? the customer is redirected to:

 

https://server6.simplewebserver.co.uk/catalog/index.php? (the ~flyingst is missing)

 

Manually changing the url in the browser by adding back the ~flyingst gives the correct page!

 

I'm brand new to OS Commerce, and hope that I have explained the problem properly

 

Any help would be much appreciated

 

Paul

Link to comment
Share on other sites

In /includes/application_top.php try changing:

 

  $request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

to:

 

request_type = (isset($_SERVER['HTTPS']) && (strtolower($_SERVER['HTTPS']) == 'on')) ? 'SSL' : 'NONSSL';

 

Matti

Link to comment
Share on other sites

Not sure if you have the problem I think - this one sometimes works:

 

$request_type = (eregi ($HTTP_HOST, HTTPS_SERVER)) ? 'SSL' : 'NONSSL';

 

Matti

Link to comment
Share on other sites

Hi Matti

 

Still no joy. I don't know if it helps, but apart from your suggested changes the entire software installation is standard, no changes to any of the code.

Link to comment
Share on other sites

I found the problem, in the php.configure file I had entered the wrong address for https cookie domain, apologies and thanks for your efforts to help

 

Best regards,

 

Paul :blush:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...