Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not Staying logged in when you go to products?


Guest

Recommended Posts

Posted

I posted this the other day but did not get any replies. I have been trying for days to figure out what the problem is but cannot. The system is not keeping the person logged in. I assume it is a cookie problem went to the admin/config/ sessions and marked everything "false" except prevent spider sessions. I have looked at my config file in \catalog\includes\configure.php but I am not very well versed in PHP to see if there is a problem or not. From what I have read on the forum the problem will probably located in this file but not sure. I have created a user name and password to log into the site as follows (email address: [email protected] Password: thankyou) here is the config file details. I am in the process of redesigning my site so some items may be out of place but everything should still work. Thanks you for any help. You can go anywhere you want and it will stay on the secure server except products once you click on a product it goes back to the unsecured server and logs you out. I just realized that it seems to only be happening on Firefox. I mainly use Firefox for everything but used internet explorer and seems to work like it is suppose to? Can anyone verify this for me? And tell me why it would do this?

 

 

 

http://www.fireflymart.com/Fireflystore//catalog/

 

From catalog/includes/configure.php

/*
 $Id: configure.php,v 1.14 2003/07/09 01:15:48 hpdl Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 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://fireflymart.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://fireflymart.com.sslpowered.com'); // eg, [url="https://localhost"]https://localhost[/url] - should not be empty for productive servers
 define('ENABLE_SSL', true); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'fireflymart.com');
 define('HTTPS_COOKIE_DOMAIN', 'fireflymart.com.sslpowered.com');
 define('HTTP_COOKIE_PATH', '/Fireflystore//catalog/');
 define('HTTPS_COOKIE_PATH', '/Fireflystore//catalog/');
 define('DIR_WS_HTTP_CATALOG', '/Fireflystore//catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/Fireflystore//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', dirname($HTTP_SERVER_VARS['SCRIPT_FILENAME']));
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

// define our database connection
 define('DB_SERVER', 'MYSQLHOST'); // eg, localhost - should not be empty for productive servers
 define('DB_SERVER_USERNAME', username);
 define('DB_SERVER_PASSWORD', 'password');
 define('DB_DATABASE', 'database');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

 

 

From admin/includes/configure.php

/*
 $Id: configure.php,v 1.14 2003/02/21 16:55:24 dgw_ Exp $

 osCommerce, Open Source E-Commerce Solutions
 [url="http://www.oscommerce.com"]http://www.oscommerce.com[/url]

 Copyright © 2002 osCommerce

 Released under the GNU General Public License
*/

// define our webserver variables
// FS = Filesystem (physical)
// WS = Webserver (virtual)
 define('HTTP_SERVER',              'https://ireflymart.com.sslpowered.com'); // eg, [url="http://localhost"]http://localhost[/url] or - [url="https://localhost"]https://localhost[/url] 
 define('HTTP_CATALOG_SERVER',      'http://fireflymart.com');
 define('HTTPS_CATALOG_SERVER',     'https://fireflymart.com.sslpowered.com');
 define('ENABLE_SSL_CATALOG',       'true'); // secure webserver for catalog module
 define('DIR_FS_DOCUMENT_ROOT',     $DOCUMENT_ROOT . '/Fireflystore//catalog/' ); // where your pages are located on the server. 
 define('DIR_WS_ADMIN',             '/Fireflystore//catalog/admin/');
 define('DIR_FS_ADMIN',             $DOCUMENT_ROOT . '/Fireflystore//catalog/admin/');
 define('DIR_WS_CATALOG',           '/Fireflystore//catalog/');
 define('DIR_FS_CATALOG',           $DOCUMENT_ROOT . '/Fireflystore//catalog/');
 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
 define('DB_SERVER',          'databasename');
 define('DB_SERVER_USERNAME', 'username');
 define('DB_SERVER_PASSWORD', 'password');
 define('DB_DATABASE',        'database');
 define('USE_PCONNECT',       'false');
 define('STORE_SESSIONS',     'mysql');
?>

Posted

In both your includes/configure.php and admin/includes/configure.php file you have entries with double slashes in them:

 

For example (from your includes/configure.php file):

 

define('HTTP_COOKIE_PATH', '/Fireflystore//catalog/');

define('HTTPS_COOKIE_PATH', '/Fireflystore//catalog/');

define('DIR_WS_HTTP_CATALOG', '/Fireflystore//catalog/');

define('DIR_WS_HTTPS_CATALOG', '/Fireflystore//catalog/');

 

There should only be one / between Fireflystore and catalog so it should look like this:

 

/Fireflystore/catalog

 

Take a look in both files and make the necessary changes. That will most likely fix your problem.

Posted

I can't believe it! I have been trying for a long time to figure it out. Thank you very much seems to have fixed my problem. You don't know how much I appreciate the help. :thumbsup: :thumbsup: :thumbsup: :thumbsup: :thumbsup:

Archived

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

×
×
  • Create New...