Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Login issues


Guest

Recommended Posts

Hi there

 

Users can log in to my store fine, but when they are about to go to the checkout, they are asked to log in again... to be told that they have zero items in their cart!

 

anyone help?

 

PG

Link to comment
Share on other sites

Try admin :arrow: Configuration :arrow: Sessions :arrow: Force Cookie Use, set to true. Also, in includes/configure.php, change to

define('STORE_SESSIONS', 'mysql');

Hth,

Matt

Link to comment
Share on other sites

Did that - but got the following messages:

 

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

 

Warning: session_start(): Cannot send session cookie - headers already sent by (output started at /home/woolyg/public_html/catalog/includes/configure.php:46) in /home/woolyg/public_html/catalog/includes/functions/sessions.php on line 67

 

Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /home/woolyg/public_html/catalog/includes/configure.php:46) in /home/woolyg/public_html/catalog/includes/functions/sessions.php on line 67

 

 

Then, when I changed the 'Force Cookie Use' selection to FALSE, the second two messages are appearing, where no messages appeared before.

 

Help!

 

site: http://www.thehubmezz.com/catalog

 

PaulG

Link to comment
Share on other sites

Brilliant - thanks a million, error message problem solved.

 

However, when cookies are forced, as per original problem, a message appears:

 

COOKIE USAGE

 

We have detected that your browser does not support cookies, or has set cookies to be disabled.

To continue shopping online, we encourage you to enable cookies on your browser.

 

I have cookies enabled. I have checked this with a friend at a different IP with the same settings, to no avail.

 

Why is this page continuing to surface?

 

Help Pls :oops:

 

PaulG

Link to comment
Share on other sites

What are your COOKIE_DOMAIN and COOKIE_PATH settings from includes/configure.php?

 

Thanks,

Matt

 

P.S. I don't know what time it was for you, but you posted originally at 6:37 AM my time and followed up less than two hours later. The forum FAQ suggests waiting 24 hours to post updates with information. A little more patience might be in order...

Link to comment
Share on other sites

Hi,

Sorry about that - The site is to go live on the 5th sept, so apologies for the hurried bumps.

 

From includes/configure.php, it says

 

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

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

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

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

 

Should they be different?

 

Thanks,

PaulG.

Link to comment
Share on other sites

It looks like HTTPS_COOKIE_DOMAIN should be 'secure.mycoolserver.com' and HTTPS_COOKIE_PATH should be '/~woolyg/catalog/'.

 

Also, if most people will reach the site at www.thehubmezz.com, you would want the www in the COOKIE_DOMAIN as well.

 

Hth,

Matt

Link to comment
Share on other sites

Hey,

 

I've done this - the code is as follows:

 

define('HTTP_COOKIE_DOMAIN', 'www.thehubmezz.com');

define('HTTPS_COOKIE_DOMAIN', 'secure.mycoolserver.com');

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

define('HTTPS_COOKIE_PATH', '/~woolyg/catalog/');

 

Yet I still get the cookie usage dialog.

The shopping cart problem remains also...

 

Rgrds,

PG

Link to comment
Share on other sites

  • 1 month later...
define('HTTPS_COOKIE_DOMAIN', 'secure.mycoolserver.com');

 

Is secure.mycoolserver.com actually your servers ssl adress? What you will probably need to do is contact your server and find out what the url is to the ssl or https site. Then replace "secure.mycoolserver.com' with the actual url.

If only I was the one helping you...

 

.:::::For complete data-driven and multi-media website creations:::::.

http://www.innocentinnovations.com

 

------------------------

Get instructions, visit the documentation site:

http://wiki.oscommerce.com/Top

Link to comment
Share on other sites

  • 2 months later...

sorry to bring an old post up again. but I cannot seem to find any fixes for my cookie problems.

Remy, What is easyphp and how has this helped with cookies?

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...