Bluehost Web Hosting Help
OSCommerce will not keep my sessions between HTTP and HTTPS.
This is a problem with the cookie settings. These are easy to fix with a simple change in the includes/configure.php file. For this example, I will be using the https://secure.BlueHost.com/~username url.
Note: You may replace this url with any secure path you are currently using.
Edit the configure.php file located in the includes directory for your OSCommerce install. For this example it is:
I have 5 lines in the configure.php file which I am concerned with:
- define('HTTP_SERVER', 'http://www.domain.com'); // eg, http://localhost - should not be empty for productive servers
- define('HTTPS_SERVER', 'https://secure.BlueHost.com/~username'); // eg, https://localhost - should not be empty for productive servers
- define('ENABLE_SSL', true); // secure webserver for checkout procedure?
- define('HTTP_COOKIE_DOMAIN', 'www.domain.com');
- define('HTTPS_COOKIE_DOMAIN', 'secure.BlueHost.com');
The third line defines that when you are dealing with checking out and account configuration, it uses a secure link. All other links will be unsecure. You want to make sure that the HTTP_SERVER and HTTPS_SERVER domain names are equal to the HTTP_COOKIE_DOMAIN and HTTPS_COOKIE_DOMAIN setting as well. You will notice you do not include the "https" or the "~username" or any other folders at all, just the domain name.
With these settings, your viewers will have a seamless transition between secure and non-secure sites.
Recommended Help Content
Protect Specific Pages With SSL
This article will show a way to protect specific pages of your website with SSL. This may have benefits for SEO and can be used on pages that contain forms, shopping carts or any other page where users might enter sensitive information.
Shopping Carts, why and how?
An overview of what shopping carts are available and why you would want to use one.
Purchasing or Renewing SSL certificates
How to renew an existing SSL certificate--or purchase a new one, within your cPanel
Related Help Content
SSL Certificate Information
General Information about SSL Certificates
Comodo Positive SSL Certificate Seal
Where do I get a copy of the site seal for my SSL I purchased through Bluehost?
SSL Installation of Self-Signed Certificate
I need to have an SSL Self-Signed Certificate installed for my domain.
Broken Plugin or Theme
Theme Plugin Wordpress Drupal Joomla Concrete5 Zen Cart Oscommerce Tomato Cart
osCommerce Lost Password Fix
A guide on how to recover your OScommerce if you have lost your administrator password
Force SSL on all pages
How to force https on entire website.
Change WordPress URL's With WordPress Tools
This article will explain how to change the Site URL or Home URL setting in WordPress. This may be useful if you have moved your WordPress site or are planning to move your WordPress site.
How to activate a free WordPress SSL
Bluehost now provides free free SSL certificates for all WordPress sites. This article describes how to activate the free SSL for a WordPress site.