Results 1 to 8 of 8

cookie_usage.php problem from force cookie use

This is a discussion on cookie_usage.php problem from force cookie use within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; I've moved oscmax from shared hosting to dedicated hosting and if I force cookie use I get redirected to cookie_usage.php ...

      
  1. #1
    Active Member
    Join Date
    Aug 2007
    Posts
    145
    Rep Power
    5


    Default cookie_usage.php problem from force cookie use

    I've moved oscmax from shared hosting to dedicated hosting and if I force cookie use I get redirected to cookie_usage.php when I attempt to log in.

    I am not using a shared SSL certificate.

    Any ideas why this is happening? What do i have to do to make it behave like it did on my shared hosting?

    Cheers!

  2. #2
    jpf
    jpf is offline
    osCMax Testing Team
    jpf's Avatar
    Join Date
    Sep 2003
    Location
    Manitoba, Canada
    Posts
    2,688
    Rep Power
    22


    Default Re: cookie_usage.php problem from force cookie use

    I never use forced cookies - never had a problem. I force cookies - I have problems....
    JPF - osCMax Fourm Moderator - To contact, post on the forum or click here
    Try out our osCMax at: Live Catalog Demo
    Limited access Admin: Live Admin Demo
    Feel free to add products they way you want and then purchase them -=+=- Sorry nothing will be billed or shipped!

  3. #3
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: cookie_usage.php problem from force cookie use

    This usually happens when the cookie domain parameter is not properly set in the configure.php file.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  4. #4
    Active Member
    Join Date
    Aug 2007
    Posts
    145
    Rep Power
    5


    Default Re: cookie_usage.php problem from force cookie use

    PHP Code:
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
      
    define('HTTP_SERVER''http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers
      
    define('HTTPS_SERVER''https://www.mydomain.com'); // eg, https://localhost - should not be empty for productive servers 
      
    define('ENABLE_SSL'true); // secure webserver for checkout procedure?
      
    define('HTTP_COOKIE_DOMAIN''www.mydomain.com');
      
    define('HTTPS_COOKIE_DOMAIN''www.mydomain.com'); 
      
    define('HTTP_COOKIE_PATH''cookies/');  
      
    define('HTTPS_COOKIE_PATH''cookies/');
      
    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''/var/www/mydomain.com/public_html/');
      
    define('DIR_FS_DOWNLOAD'DIR_FS_CATALOG 'download/');
      
    define('DIR_FS_DOWNLOAD_PUBLIC'DIR_FS_CATALOG 'pub/'); 


    PHP Code:
    // Define the webserver and path parameters
    // * DIR_FS_* = Filesystem directories (local/physical)
    // * DIR_WS_* = Webserver directories (virtual/URL)
      
    define('HTTP_SERVER''http://www.mydomain.com'); // eg, http://localhost - should not be empty for productive servers
      
    define('HTTP_CATALOG_SERVER''http://www.mydomain.com');
      
    define('HTTPS_CATALOG_SERVER''https://mydomain.com'); // martin edit removed www
      
    define('ENABLE_SSL_CATALOG'true); // secure webserver for catalog module   
      
    define('DIR_FS_DOCUMENT_ROOT''/var/www/mydomain.com/public_html/admin/'); // where the pages are located on the server
      
    define('DIR_WS_ADMIN''/admin/'); // absolute path required
      
    define('DIR_FS_ADMIN''/var/www/mydomain.com/public_html/admin/'); // absolute pate required
      
    define('DIR_WS_CATALOG''/'); // absolute path required
      
    define('DIR_FS_CATALOG''/var/www/mydomain.com/public_html/'); // absolute path required
      
    define('DIR_WS_IMAGES''images/');
      
    define('DIR_WS_ICONS'DIR_WS_IMAGES 'icons/');
      
    define('DIR_WS_CATALOG_IMAGES'DIR_WS_CATALOG 'images/'); 
      
    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_CATALOG_LANGUAGES'DIR_WS_CATALOG 'includes/languages/');
      
    define('DIR_FS_CATALOG_LANGUAGES'DIR_FS_CATALOG 'includes/languages/');
      
    define('DIR_FS_CATALOG_IMAGES'DIR_FS_CATALOG 'images/'); 
      
    define('DIR_FS_CATALOG_MODULES'DIR_FS_CATALOG 'includes/modules/');
      
    define('DIR_FS_BACKUP'DIR_FS_ADMIN 'backups/');
      
    define('DIR_FCKEDITOR'DIR_FS_CATALOG 'FCKeditor/');
      
    define('DIR_WS_FCKEDITOR'DIR_WS_CATALOG 'FCKeditor/'); 

    See any problems there?

  5. #5
    Active Member
    Join Date
    Aug 2007
    Posts
    145
    Rep Power
    5


    Default Re: cookie_usage.php problem from force cookie use

    Quote Originally Posted by jpf View Post
    I never use forced cookies - never had a problem. I force cookies - I have problems....
    I don't want session IDs... it'll mess with everything.

    Worked fine before I moved it off shared hosting

  6. #6
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: cookie_usage.php problem from force cookie use

    Should work fine. Change the cookie domain to:

    define('HTTP_COOKIE_DOMAIN', '.mydomain.com');
    define('HTTPS_COOKIE_DOMAIN', '.mydomain.com');


    Make sure you set to store sessions in MySQL (you did not post that setting from the configure.php)

    Then make sure to delete all cookies for your domain that are stored in your browser. That should kick things in for you. If not, I will look closer for you.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

  7. #7
    Active Member
    Join Date
    Aug 2007
    Posts
    145
    Rep Power
    5


    Default Re: cookie_usage.php problem from force cookie use

    This problem was fixed with the help of my host who realised that on a dedicated server the register_globals and register_long_arrays had to be turned on in the etc directory php.ini and not in the .htaccess


    Also a further problem we had with SEO URLs not working properly was because while it appeared that redirect was on it wasn't actually working...

    From the words of my webhost

    It was some stupid default configuration options causing the issue. Because of the way myparentdomain.com was set-up because it shares an IP with the webmin, usermin and phpmyadmin the configuration was conflicting with the ‘standard’ out of the box apache.

    I never would have seen it and there was NOTHING online that would indicate this type of issue occurring or a fix for it so it was just a process of elimination to find the cause and get rid of it.

    The actual fix was to remove all the default policies apache applies to all ‘virtual hosts’ and define them individually per host if that makes sense.

  8. #8
    osCMax Developer

    michael_s's Avatar
    Join Date
    Jul 2002
    Location
    Phoenix, AZ
    Posts
    19,501
    Rep Power
    567


    Default Re: cookie_usage.php problem from force cookie use

    Server configuration will kill you every time... Glad you have your server properly configured now.
    Michael Sasek
    osCMax Developer


    osCmax installation service - Have our professionals install osCmax on your server - same day service!
    osCmax 2.0 User Manual - the must have beginners guide to osCmax v2.0

    Stay Up To Date with everything osCMax:
    Free osCMax Newsletters - Security notices, New Releases, osCMax News
    osCMax on Twitter - Up to the minute info as it happens. Know it first.

    osCmax Documentation

Similar Threads

  1. Dynamic force attribute selection
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 04-05-2008, 11:23 AM
  2. Force Customer Country (Force CC)
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 02-18-2008, 03:20 AM
  3. Force Select Available Options
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 10-12-2007, 10:25 PM
  4. Force newsletter
    By Bassmaster in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 05-09-2007, 07:49 AM
  5. Cookie problem
    By garjowan in forum osCommerce 2.2 Modification Help
    Replies: 1
    Last Post: 04-10-2006, 06:26 PM

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
  •