osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

SSL Errors, Session Cookie, Session Cache, NOVICE Problems?

This is a discussion on SSL Errors, Session Cookie, Session Cache, NOVICE Problems? within the osCommerce 2.2 Modification Help forums, part of the osCommerce 2.2 Forums category; Hi... Bare Novice here... I have define('ENABLE_SSL', true); and had problem with the page can not display... When I checked ...


Go Back   osCommerce and osCMax shopping cart software forums > osCommerce 2.2 Forums > osCommerce 2.2 Modification Help

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 09-07-2003, 10:23 AM
New Member
 
Join Date: Sep 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
hanool
Default SSL Errors, Session Cookie, Session Cache, NOVICE Problems?

Hi... Bare Novice here...


I have define('ENABLE_SSL', true); and had problem with the page can not display... When I checked "catalog/includes/configure.php" and "admin/includes/configure.php" files, I have notice that 'HTTPS_SERVER' was set incorrect, so I have revised as following;

catalog/includes/configure.php file from...
define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://all4canopy.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?

catalog/includes/configure.php file to...
define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://secure.vosn.net/~all4cano/'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?

admin/includes/configure.php from...
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');
define('HTTPS_CATALOG_SERVER', 'https://all4canopy.com');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server

admin/includes/configure.php to...
// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');
define('HTTPS_CATALOG_SERVER', 'https://secure.vosn.net/~all4cano/');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server

After I made this change, the https:// page opens but states that the cookie is not correctly set... and advising to set web browser security level as "Medium" and I set as "Medium" but still the same message... This shows up on all https:// pages...


So I took a wild guess and edit the catalog/includes/configure.php file
From;
define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');
To;
define('HTTPS_COOKIE_DOMAIN', 'https://secure.vosn.net/~all4cano/');
And bunch of error messages comes up on http:// and https:// pages...
So I edit again to define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');

But still having following error messages....

Warning: Cannot modify header information - headers already sent by (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/general.php on line 1174

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/sessions.php on line 67

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/sessions.php on line 67

Warning: Cannot modify header information - headers already sent by (output started at /home/all4cano/public_html/catalog/includes/configure.php:52) in /home/all4cano/public_html/catalog/includes/functions/general.php on line 29

Here is the sample URLs...
http://all4canopy.com/catalog/index.php
http://all4canopy.com/catalog/produc...on=add_product

What am I doing wrong???

Here is the the copy of "catalog/includes/configure.php" and "admin/includes/configure.php" files

catalog/includes/configure.php File;
<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://secure.vosn.net/~all4cano/'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'all4canopy.com');
define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');
define('HTTP_COOKIE_PATH', '/catalog/');
define('HTTPS_COOKIE_PATH', '/catalog/');
define('DIR_WS_HTTP_CATALOG', '/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/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/');

//Added for BTS1.0
define('DIR_WS_TEMPLATES', 'templates/');
define('DIR_WS_CONTENT', DIR_WS_TEMPLATES . 'content/');
define('DIR_WS_JAVASCRIPT', DIR_WS_INCLUDES . 'javascript/');
//End BTS1.0
define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');
define('DIR_FS_CATALOG', '/home/all4cano/public_html/catalog/');
define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection........


admin/includes/configure.php Files;
<?php
/*
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com

Copyright (c) 2003 osCommerce

Released under the GNU General Public License
*/

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://all4canopy.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTP_CATALOG_SERVER', 'http://all4canopy.com');
define('HTTPS_CATALOG_SERVER', 'https://secure.vosn.net/~all4cano/');
define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module
define('DIR_FS_DOCUMENT_ROOT', '/home/all4cano/public_html/catalog/'); // where the pages are located on the server
define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required
define('DIR_FS_ADMIN', '/home/all4cano/public_html/catalog/admin/'); // absolute pate required
define('DIR_WS_CATALOG', '/catalog/'); // absolute path required
define('DIR_FS_CATALOG', '/home/all4cano/public_html/catalog/'); // absolute path required
define('DIR_WS_IMAGES', 'images/');
define('DIR_WS_ICONS', DIR_WS_IMAGES . 'icons/');
define('DIR_WS_CATALOG_IMAGES', DIR_WS_CATALOG . 'images/');
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_CATALOG_LANGUAGES', DIR_WS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_LANGUAGES', DIR_FS_CATALOG . 'includes/languages/');
define('DIR_FS_CATALOG_IMAGES', DIR_FS_CATALOG . 'images/');
define('DIR_FS_CATALOG_MODULES', DIR_FS_CATALOG . 'includes/modules/');
define('DIR_FS_BACKUP', DIR_FS_ADMIN . 'backups/');

// define our database connection.....


Can anyone please shed some light on this???

Thank you!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 09-07-2003, 11:49 AM
New Member
 
Join Date: Sep 2003
Posts: 9
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
hanool
Default

PROBLEM SOLVED!!!

The error showed up because of the extra blank lines at the bottom of the catalog/includes/configure.php file... After delete them the errors are gone!!!

Second, after I fixed errors, I came up with cookie problem...
All you need to do is just turn off 'force cookies' in the admin under : Configuration Sessions!

Or by the way, I also edit the catalog/includes/configure.php File;
define('HTTPS_COOKIE_DOMAIN', 'all4canopy.com');
to
define('HTTPS_COOKIE_DOMAIN', 'https://secure.vosn.net');

Hope this helps Novice and Newbee like me...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
Session Cookies and Cache Warnings Plastic osCMax v2 Installation issues 0 12-04-2005 06:30 PM
Warning: session_start(): Cannot send session cache limiter developer_x osCommerce 2.2 Modification Help 2 01-23-2005 08:13 AM
Warning! Session cannot send seession code;cache limited! sangdao osCommerce 2.2 Modification Help 4 09-23-2004 10:49 AM
What is this error meaning?! [Cannot send session cookie] toniwong osCommerce 2.2 Installation Help 1 05-10-2004 10:07 AM
session_start(): Cannot send session cookie minimum osCommerce 2.2 Installation Help 2 02-14-2004 11:06 AM


All times are GMT -8. The time now is 08:31 PM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax