Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Cart empty after login no matter what I do - Please help


dabbuhl

Recommended Posts

site: cfmdiscountfurniture.com

 

I have set everything up with product and everything seams to be working fine. I was testing the shopping cart for checkout and when going to checkout, I am told to login everytime, even if I just logged in prior. After logging in, all products in the cart are gone. I have been reading through the forums and can't seam to find a solution that fixes it for me.

 

In the admin/sessions I have everything set to false except for Prevent Spider Sessions. I have checked my includes/configure.php file as suggested by countless others and it looks correct.

 

Please let me know what code to list here for someone to look at or visit the site and see for yourself. I have created a $1.00 item for testing. Please let me know the results.

Link to comment
Share on other sites

site: cfmdiscountfurniture.com

 

I have set everything up with product and everything seams to be working fine. I was testing the shopping cart for checkout and when going to checkout, I am told to login everytime, even if I just logged in prior. After logging in, all products in the cart are gone. I have been reading through the forums and can't seam to find a solution that fixes it for me.

 

In the admin/sessions I have everything set to false except for Prevent Spider Sessions. I have checked my includes/configure.php file as suggested by countless others and it looks correct.

 

Please let me know what code to list here for someone to look at or visit the site and see for yourself. I have created a $1.00 item for testing. Please let me know the results.

I use these sessions settings:

 

Force Cookie Use True

Check SSL Session ID True

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session True

Link to comment
Share on other sites

I use these sessions settings:

 

Force Cookie Use True

Check SSL Session ID True

Check User Agent False

Check IP Address False

Prevent Spider Sessions True

Recreate Session True

 

If I force Cookies, I get the standard, your browser does not support cookies, even though it is set to.

Link to comment
Share on other sites

So what do you have for these in your configure.php

 

  define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');

:unsure:

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

So what do you have for these in your configure.php

 

  define('HTTP_COOKIE_DOMAIN', '');
 define('HTTPS_COOKIE_DOMAIN', '');
 define('HTTP_COOKIE_PATH', '');
 define('HTTPS_COOKIE_PATH', '');

:unsure:

 

Here is my includes/config.php file

 

<?php

// Please, note that all changes in this file will be lost

// after reconfiguring application by Plesk

define('HTTP_SERVER', 'http://cfmdiscountfurniture.com');

define('HTTPS_SERVER', 'http://cfmdiscountfurniture.com');

define('ENABLE_SSL', 'false');

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

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

define('HTTP_COOKIE_PATH', '/./');

define('HTTPS_COOKIE_PATH', '/./');

define('DIR_WS_HTTP_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', 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', 'localhost');

define('DB_SERVER_USERNAME', 'cfmdf');

define('DB_SERVER_PASSWORD', 'craven77');

define('DB_DATABASE', 'cfmdf');

define('USE_PCONNECT', 'false');

define('STORE_SESSIONS', '');

?>

Link to comment
Share on other sites

Try these for the cookie settings:

 

define('HTTP_COOKIE_DOMAIN', '.cfmdiscountfurniture.com');
define('HTTPS_COOKIE_DOMAIN', '.cfmdiscountfurniture.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');

Then change your username and password for your database since you've exposed it to the world...

:-"

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Try these for the cookie settings:

 

define('HTTP_COOKIE_DOMAIN', '.cfmdiscountfurniture.com');
define('HTTPS_COOKIE_DOMAIN', '.cfmdiscountfurniture.com');
define('HTTP_COOKIE_PATH', '/');
define('HTTPS_COOKIE_PATH', '/');

 

:-"

 

This worked and fixed the problem. My question is why did adding a . in front of the domain name fix it and why did it need it, why would it not work properly without it?

Link to comment
Share on other sites

Personally, I think it was the path that was the major malfunction, not the name.

 

But you won't know unless you change it back and test it again.

If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you.

 

"Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice."

- Me -

 

"Headers already sent" - The definitive help

 

"Cannot redeclare ..." - How to find/fix it

 

SSL Implementation Help

 

Like this post? "Like" it again over there >

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...