Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Not staying logged in


Guest

Recommended Posts

Posted

I am having a problem that just started. I must have changed something but cannot figure out what it was. :-" When you log in to the site and then look at a item then go back to the start page it will show you as a guest not logged in. 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 a 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.

 

 

 

/*
 $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://mysite.com'); // eg, [url="http://localhost"]http://localhost[/url] - should not be empty for productive servers
 define('HTTPS_SERVER', 'https://mysite.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', 'mysite.com');
 define('HTTPS_COOKIE_DOMAIN', 'mysite.com.sslpowered.com');
 define('HTTP_COOKIE_PATH', '/Mysite//catalog/');
 define('HTTPS_COOKIE_PATH', '/Mysite//catalog/');
 define('DIR_WS_HTTP_CATALOG', '/Mysite//catalog/');
 define('DIR_WS_HTTPS_CATALOG', '/Mysite//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', 'databasename');
 define('USE_PCONNECT', 'false'); // use persistent connections?
 define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'
?>

Posted

I have been doing some more research and figured out that once you login in it goes to a secure server 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? Just wanted to add this little bit of information. Thanks

Posted

Anyone? I have noticed that it will keep you logged in on the secure server untill you click on a product then it will take you back to the unsecure server? PLEASE HELP

Archived

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

×
×
  • Create New...