habbott1212 Posted December 6, 2004 Posted December 6, 2004 I have not gone live yet, but am having a problem with the customer login. I suspect the problem lies in the fact that the host I am using makes me us a different domain to use ssl, this causes a problem with the customer login. When a person is logging in they are on the ssl section, but when they go back to add more products to their cart they leave ssl and for some reason they are automatically logged out. Has anyone else had this problem, and if so what can I do to get it to work? Thanks in advance
habbott1212 Posted December 6, 2004 Author Posted December 6, 2004 I guess I should have looked around a little longer - My host had already solved this problem. If someone else has the problem and is using startlogic as a host, try this Fixing the OSCommerse shared SSL issue. IN /catalog/include/functions/general.php function tep_redirect($url) { if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . substr($url, strlen(HTTP_SERVER)); // Change it to SSL } } SHOULD READ if ( (ENABLE_SSL == true) && (getenv('HTTPS') == 'on') ) { // We are loading an SSL page if (substr($url, 0, strlen(HTTP_SERVER)) == HTTP_SERVER) { // NONSSL url $url = HTTPS_SERVER . DIR_WS_HTTPS_CATALOG . substr($url, strlen(HTTP_SERVER . DIR_WS_HTTP_CATALOG)); // Change it to SSL } }
Recommended Posts
Archived
This topic is now archived and is closed to further replies.