osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

Problems with cookie usage.php

This is a discussion on Problems with cookie usage.php within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hey all, I seem to be having an issue when I attempt to login as a registered user? It always ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 10-13-2003, 07:14 PM
Lurker
 
Join Date: Oct 2003
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
redz008
Default Problems with cookie usage.php

Hey all,

I seem to be having an issue when I attempt to login as a registered user?
It always directs me to the :cookie_usage.php: page.
I am sure I have an account setup.
I am sure ciikies are enabled within my browser.
I have tried disabling "force cookies" option in admin tool.

Hopefully someone can assist me?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 10-20-2003, 06:21 PM
Member
 
Join Date: Oct 2003
Location: The Antelope Valley in SoCal
Posts: 47
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
In-Overtime
Default

Hey redz008,

I, too, am continuing to experience the same issue. When I have "session cookies" forced ON, upon clicking LOGIN I am redirected to the "cookie_usage.php" page. Turning OFF the "session cookies" allows me to pass thru with out a single gunshot. Technically speaking, we should not have to be a "registered user" to get to the LOGIN area.

During my wanderings I happen to notice that in the Admin Control Panel that the default directory for storing session cookies was "/tmp". Upon browsing my fresh install, I noticed no such folder/directory, however, there was a "/temp" folder. So, I created a /tmp folder, Chmod - 777. Alas! No such luck!

I have turned my computer's IE security settings down to "stick it to me", but no matter....

There is one thing that I really would like to do is add the "AutoLogon" contrib. I had it on my other OsC Cart, but when I switched servers, I ended up doing a completely fresh installation, choosing the MS2 MAX Cart for its pre-added contributions. But there are a couple of bugs still inherent (like the folder issue above).

BUT, my wish is to be able to use all the powerful features of this Cart without having to compromise (like shutting off cookies).

cause I happen to like those monster chocolate chip ones.......
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 10-20-2003, 10:26 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

That is not a bug in MS2-MAX, it is a problem somewhere in your setup. Most likely, you are either using shared ssl, or the cookie domain and path are not correctly setup.

I have installed ms2-max on HUNDREDS of servers and have not once had this issue. I can reproduce it though, by putting the incorrect cookie domain path, or forcing cookies with shared ssl. That is an issue with osCommerce though, and is built in to behave that way...

Regarding the /tmp dir, most servers have a shared tmp dir available for session handling, and it is not visible in a user account dir tree, as it is above the home dir of accounts. PHP uses it to store sessions, but you can change the path to whatever you like, just make sure it actually points to a writable directory.

Fix the problems with your setup and you will be able to use cookies. Remember, no shared ssl...
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 10-21-2003, 06:09 PM
Anonymous
Guest
 
Posts: n/a
Default

Thanks for the assistance,
Could you please have a look at the script below copied from my config.php file
Please let me know what you would suggest.

// Define the webserver and path parameters
// * DIR_FS_* = Filesystem directories (local/physical)
// * DIR_WS_* = Webserver directories (virtual/URL)
define('HTTP_SERVER', 'http://www.simplyredz.com'); // eg, http://localhost - should not be empty for productive servers
define('HTTPS_SERVER', 'https://www.simplyredz.com'); // eg, https://localhost - should not be empty for productive servers
define('ENABLE_SSL', true); // secure webserver for checkout procedure?
define('HTTP_COOKIE_DOMAIN', 'http://www.simplyredz.com');
define('HTTPS_COOKIE_DOMAIN', 'https://www.simplyredz.com');
define('HTTP_COOKIE_PATH', '/store/catalog/');
define('HTTPS_COOKIE_PATH', '/store/catalog/');
define('DIR_WS_HTTP_CATALOG', '/store/catalog/');
define('DIR_WS_HTTPS_CATALOG', '/store/catalog/');

Your help is greatly appreciated
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 12-18-2003, 05:32 PM
Lurker
 
Join Date: Dec 2003
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
tckhoo
Default

I had the same problem... I set HTTP_COOKIE_DOMAIN to ''
and it seems to work. I'm running Apache on Windows 2000 BTW.

If anyone knows why this is the case please elaborate
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #6  
Old 01-14-2004, 03:48 PM
Member
 
Join Date: Aug 2003
Location: Southampton UK
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
NickW
Default

Why is it that cookies don't work with shared SSL?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 01-14-2004, 10:35 PM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

Quote:
define('HTTP_COOKIE_DOMAIN', 'http://www.simplyredz.com');
define('HTTPS_COOKIE_DOMAIN', 'https://www.simplyredz.com');
These should be 'simplyredz.com' only. Ditch the rest...

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

Cookies don't work with shared ssl because the base domain changes, and cookies are set for one domain, and they are not valid on the different shared ssl domain.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #8  
Old 01-15-2004, 02:51 AM
Member
 
Join Date: Aug 2003
Location: Southampton UK
Posts: 63
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
NickW
Default

Are we best advised to get an SSL certificate rather than shared SSL space, as without cookies the session id is displayed in the url.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #9  
Old 01-15-2004, 09:36 AM
michael_s's Avatar
osCMax Developer

 
Join Date: Jul 2002
Location: Phoenix, AZ
Posts: 10,328
Thanks: 68
Thanked 322 Times in 305 Posts
Rep Power: 10
michael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond reputemichael_s has a reputation beyond repute
Default

NickW, if you are keen on security, then yes, you will get your own ssl cert, but it is not required.
__________________
Michael Sasek
osCMax Developer


  • osCMax Templates - Hundreds of premium quality templates. New designs every month!

  • xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience.

  • osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host.

  • osCMax Template Tutorial - Learn how to make your own custom templates and how to use the powerful features of the osCMax template system.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #10  
Old 02-17-2004, 12:14 AM
Tuluum's Avatar
Lurker
 
Join Date: Feb 2004
Posts: 4
Thanks: 0
Thanked 0 Times in 0 Posts
Rep Power: 0
Tuluum
Default

Hi there, I'm having the same problem. I have Force Cookies set to false though, and I also have SSL usage set to false. I have tried different browsers, cleared cache, deleted cookies that were sent before, and all keep sending me back to the cookie_usage page when I try to checkout. Any ideas?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

Thread Thread Starter Forum Replies Last Post
CPU Usage 2wheels1love osCMax v1.7 Discussion 1 05-02-2005 10:36 PM
OT - Tracking IP's and Usage? koltz osCMax v1.7 Discussion 8 09-22-2004 09:29 AM
Cookie Usage - Google not indexing? Nugar osCMax v1.7 Discussion 5 08-23-2004 09:00 PM
Cookie Usage Error??? RichRodgers.net osCMax v1.7 Installation 1 04-02-2004 08:27 AM
SSL Errors, Session Cookie, Session Cache, NOVICE Problems? hanool osCommerce 2.2 Modification Help 1 09-07-2003 11:49 AM


All times are GMT -8. The time now is 03:49 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax