Page 1 of 2 12 LastLast
Results 1 to 10 of 15

Thread: Problems with cookie usage.php

  1. #1
    redz008
    Guest


    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?

  2. #2
    In-Overtime
    Guest


    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.......

  3. #3
    osCMax Developer


    Problems with cookie usage.php

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,011
    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    594


    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 2.5.4 is now available via auto-installation using Softaculous!

    Stay Up To Date with everything osCMax:
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    Anonymous
    Guest


    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

  5. #5
    tckhoo
    Guest


    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

  6. #6
    NickW
    Guest


    Default

    Why is it that cookies don't work with shared SSL?

  7. #7
    osCMax Developer


    Problems with cookie usage.php

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,011
    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    594


    Default

    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 2.5.4 is now available via auto-installation using Softaculous!

    Stay Up To Date with everything osCMax:
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  8. #8
    NickW
    Guest


    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.

  9. #9
    osCMax Developer


    Problems with cookie usage.php

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    23,011
    Total Contributions For

    michael_s     $ 10.00
    Rep Power
    594


    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 2.5.4 is now available via auto-installation using Softaculous!

    Stay Up To Date with everything osCMax:
    osCmax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  10. #10
    Tuluum
    Guest


    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?

Page 1 of 2 12 LastLast

Similar Threads

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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •