Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Logged Out on Checkout


jond

Recommended Posts

Posted

Hi,

 

I just installed a fresh version of oscommerce onto my Windows server. I created a test account and logged in. However, once i login as soon as i click to a different page, i am logged out. As a guest, when i add products to the cart, and then checkout and login - my cart is empty. When i re-add products, i am logged out again. Please help me break out of this loop!

 

Thanks!

Posted
Hi,

 

I just installed a fresh version of oscommerce onto my Windows server. I created a test account and logged in. However, once i login as soon as i click to a different page, i am logged out. As a guest, when i add products to the cart, and then checkout and login - my cart is empty. When i re-add products, i am logged out again. Please help me break out of this loop!

 

Thanks!

 

 

In admin panel under Configuration/Sessions change Check for IP address to FALSE...

 

Mike

Posted

Thanks for the reply. I checked all settings here - all the session checks were set to FALSE and i was still getting logged out on every page. I tried from a different computer (i believe i checked both with lowered security settings in IE) and was able to stay logged on, until checkout. I would be logged out here, but then if i either went back to a product, or re-entered my info, i would stay logged on. Someone please help - this is a fresh install and i cant have customers being logged out constantly. Thanks in advance!!

Posted

The Same is happening to me... when ever I click checkout it takes me bact to login... and that is the cycle.. I too could you some help on this problem!

Posted

It is probably down to the settings you have in your configure.php files. Post them here, minus the db user name and password and someone will look them over for you.

 

Vger

Posted
It is probably down to the settings you have in your configure.php files.  Post them here, minus the db user name and password and someone will look them over for you.

 

Vger

 

I hope you don't mind if I take you up on that ;) I'm having the same problem as well.

 

<?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://kfgspeed.com'); // eg, http://localhost - should not be empty for productive servers
 define('HTTPS_SERVER', ''); // eg, https://localhost - should not be empty for productive servers
 define('ENABLE_SSL', false); // secure webserver for checkout procedure?
 define('HTTP_COOKIE_DOMAIN', 'kfgspeed.com');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '/catalog/');
 define('HTTPS_COOKIE_PATH', '');
 define('DIR_WS_HTTP_CATALOG', '/catalog/');
 define('DIR_WS_HTTPS_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', '/www/k/f/kfgspeed.com/htdocs/catalog/');
 define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');
 define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

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

Posted

Thanks, here are the 2 configure.php files - Also, when i tried from home, i wasnt logged out on every page - just the checkout. Still a big problem, though. Below, i have the database stuff and https server commented out.

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

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://tools4flooring.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTPS_SERVER', '*******************'); // eg, https://localhost - should not be empty for productive servers

define('ENABLE_SSL', true); // secure webserver for checkout procedure?

define('HTTP_COOKIE_DOMAIN', 'tools4flooring.com');

define('HTTPS_COOKIE_DOMAIN', 'tools4flooring.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/');

 

define('DIR_WS_DOWNLOAD_PUBLIC', 'pub/');

define('DIR_FS_CATALOG', 'E:/Accounts/tools4fl/catalog/');

define('DIR_FS_DOWNLOAD', DIR_FS_CATALOG . 'download/');

define('DIR_FS_DOWNLOAD_PUBLIC', DIR_FS_CATALOG . 'pub/');

 

// define our database connection

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '******');

define('DB_SERVER_PASSWORD', '******');

define('DB_DATABASE', '*******');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

 

and in my Admin..

 

<?php

/*

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

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://tools4flooring.com'); // eg, http://localhost - should not be empty for productive servers

define('HTTP_CATALOG_SERVER', 'http://tools4flooring.com');

define('HTTPS_CATALOG_SERVER', '********************');

define('ENABLE_SSL_CATALOG', 'true'); // secure webserver for catalog module

define('DIR_FS_DOCUMENT_ROOT', 'E:/Accounts/tools4fl/catalog/'); // where the pages are located on the server

define('DIR_WS_ADMIN', '/catalog/admin/'); // absolute path required

define('DIR_FS_ADMIN', 'E:/Accounts/tools4fl/catalog/admin/'); // absolute pate required

define('DIR_WS_CATALOG', '/catalog/'); // absolute path required

define('DIR_FS_CATALOG', 'E:/Accounts/tools4fl/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

define('DB_SERVER', 'localhost'); // eg, localhost - should not be empty for productive servers

define('DB_SERVER_USERNAME', '*************');

define('DB_SERVER_PASSWORD', '***************');

define('DB_DATABASE', '***************');

define('USE_PCONNECT', 'false'); // use persistent connections?

define('STORE_SESSIONS', 'mysql'); // leave empty '' for default handler or set to 'mysql'

?>

Posted

hey,

it is just on the checkout page that the customer gets logged out. i just needed to delete my cookies before when i was getting logged out on every page. Still, a huge problem though!

Posted
hey,

it is just on the checkout page that the customer gets logged out. i just needed to delete my cookies before when i was getting logged out on every page. Still, a huge problem though!

 

 

Try changing this to your secure domain

 

define('HTTPS_COOKIE_DOMAIN', 'tools4flooring.com');

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

should i do this on both files?

 

Vger, what do you think?

and finally, gridlock - have you found a solution yet?

 

thanks in advance!

Posted
should i do this on both files?

 

 

 

You are not going to find the line in both files. It is only located in your catalog configure.php file not in admin.

The Knowledge Base is a wonderful thing.

Do you have a problem? Have you checked out Common Problems?

There are many very useful osC Contributions

Are you having trouble with a installed contribution? Have you checked out the support thread found Here

BACKUP BACKUP BACKUP!!! You did backup, right??

Posted

when i change the

 

'tools4flooring.com'

 

to my secure domain, how should i do this?

 

with the full url, like this?

 

'https://************'

 

i just wanted to make sure because the http:// prefix is not included originally.

 

thanks in advance!

Posted

that did it!!

 

thank you very much. I used the full https:// url path here and it worked great - i stay logged in on checkout now.

 

thanks again!

Posted

No I still can't get mine to work. It keeps looping through the delivery process and randomly coming back to the login screen. I compared the configure.php file to the one in my test site that works fine, and made them identical(except for server info) but it still isn't working.

Posted

Found the problem. There must be something messed up with my installation of the canada post contrib. As soon as I turned off the module, it worked.

Archived

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

×
×
  • Create New...