Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Set cookie warning even when it is set


Guest

Recommended Posts

Posted

Hi,

 

Can anyone tell me why I am getting the Set Cookie warning message from the ( cookie_usage.php) page even when i have set as per the recommendation.

 

I get this warning when I try to add an item to my cart by clicking Add To Cart button and also when i browse to My Account page.

 

On further researching I could find that the redirection is happening from the Application_top.php where the if($session_started ==false) the redirection to cookie_usage.php is called.

 

What could be the real reason for this when the Security level for browser is set to medium and Privacy to Accept All Cookies?

 

Expecting your valuable suggestions

 

Thanks in advance

Vineesh

Posted

You have probably turned on "Force Cookie Use" when you do not have a Full SSL Certificate for your website. For this setting to work both the http and https_cookie_domain settings in the includes/configure.php file must be an exact match.

 

Vger

Posted

Hi,

 

Thank you very much for your immediate reply.

 

My config settings in the Configure.php file is as follows, can you please tell me where i am going wrong,

 

define('HTTP_SERVER', 'http://202.88.233.233:222');

define('HTTPS_SERVER', '');

define('ENABLE_SSL', false);

define('HTTP_COOKIE_DOMAIN', '202.88.233.233:222');

define('HTTPS_COOKIE_DOMAIN', '');

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

 

(This is just a sample test development server that we are working on)

 

how can I disable "Force Cookie Use" ? Please give me a some briefing where i went wrong, and I can start it from the scratch as installing a new site is easy for me at this stage.

 

thanks in advance.

Vineesh

Posted

osCommerce admin --> Configuration --> Sessions --> Force Cookie Use - set to false.

 

Vger

Posted

Hey thank you very much it worked.

 

thanks once again for your immediate reply. :)

 

Vineesh

  • 2 weeks later...
Posted
You have probably turned on "Force Cookie Use" when you do not have a Full SSL Certificate for your website. For this setting to work both the http and https_cookie_domain settings in the includes/configure.php file must be an exact match.

 

Vger

 

Hi I cann't enanble SSL on my server because the hosting provider doesn't support this.

 

So the only option will be Forced Cookie Usage... ?

Posted

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

 

also change this to

 

 

define('HTTP_COOKIE_PATH', '/');

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted
define('HTTP_COOKIE_PATH', '/work2/');

 

also change this to

 

 

define('HTTP_COOKIE_PATH', '/');

 

Satish

 

<?php
define('HTTP_SERVER', 'http://digicall.nl');
define('HTTPS_SERVER', 'http://digicall.nl');
define('ENABLE_SSL', 'false');
define('HTTP_COOKIE_DOMAIN', 'digicall.nl');
define('HTTPS_COOKIE_DOMAIN', 'digicall.nl');
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', '/home/vhosts/digicall.nl/httpdocs');
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', '');
define('DB_SERVER_PASSWORD', '');
define('DB_DATABASE', '');
define('USE_PCONNECT', 'false');
define('STORE_SESSIONS', 'mysql');
?>

 

I have this but still doesn't work... what should I change

 

Force cookie is DISABLED !!!

SSL not possible

Posted

define('HTTP_COOKIE_DOMAIN', 'digicall.nl');

 

 

place a wrong value so cookies are never set.

 

define('HTTP_COOKIE_DOMAIN', 'zzzzzzzdigicall.nl');

 

or in application_top.php there is a code that sets test cookie make sure it fails.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

define('HTTP_COOKIE_PATH', '/');

 

to

 

define('HTTP_COOKIE_PATH', '');

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

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

 

to

 

define('HTTP_COOKIE_PATH', '');

 

Satish

 

 

	define('HTTP_SERVER', 'http://digicall.nl');
define('HTTPS_SERVER', 'http://digicall.nl');
define('ENABLE_SSL', 'false');
define('HTTP_COOKIE_DOMAIN', 'zzzzzzdigicall.nl');
define('HTTPS_COOKIE_DOMAIN', 'zzzzzzdigicall.nl');
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/');

 

like this still not working !

Archived

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

×
×
  • Create New...