osCmax v2.5 User Manual
Results 1 to 9 of 9

Can create customer account, but customer cannot login

This is a discussion on Can create customer account, but customer cannot login within the osCmax v2 Installation issues forums, part of the osCmax v2.0 Forums category; Hi all, I can create a customer account, but when I try to login it takes me back to the ...

      
  1. #1
    Lurker
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0


    Default Can create customer account, but customer cannot login

    Hi all,

    I can create a customer account, but when I try to login it takes me back to the main catalog page and greets me as "Guest." I also cannot put anything in a shopping cart. Any suggestions where to start looking? What information should I have included with this post?

  2. #2
    New Member
    Join Date
    Mar 2011
    Posts
    15
    Rep Power
    0


    Default Re: Can create customer account, but customer cannot login

    Quote Originally Posted by rsbettis View Post
    Hi all,

    I can create a customer account, but when I try to login it takes me back to the main catalog page and greets me as "Guest." I also cannot put anything in a shopping cart. Any suggestions where to start looking? What information should I have included with this post?

    If you are accessing the internet through AOL and not through other standard means, then AOL is the issue.

    If you are accessing the internet through cable or dsl, then it could be a web browser issue.

    I use:

    • Internet Explorer Version 8
    • Google Chrome
    • Firefox.
    Try using one of the other browsers and see if it retains your log in. If not, then you have found a browser issue.

  3. #3
    Lurker
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0


    Default Re: Can create customer account, but customer cannot login

    Thanks for the response. I've got a broadband DSL connection that does not rely on AOL and this was not an issue with the osCommerce 2.3.1 or the 2.2 RC2 before. I've tried both Firefox & Safari with the same result.

  4. #4
    osCMax Developer

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


    Default Re: Can create customer account, but customer cannot login

    Your configure.php file is not set up correctly. Check there first. Make sure your cookie domains for ssl and non ssl are correct. They will just be your domain name with a period preceding it (no http://). It will look like this : .domain.com
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  5. #5
    Lurker
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0


    Default Re: Can create customer account, but customer cannot login

    Thank you, Michael for replying. I opened the catalog/includes/configure.php and found no cookie entries. Poking around some other configure.php files I have lying around I did find some & transplanted them into the "live" file. I wasn't confident with your instructions about whether to leave off the "www" at the front of the domain name but I erred in following your example to the letter. I now have these 3 entries in the aforementioned configure.php file:


    define('HTTP_COOKIE_DOMAIN', '.mastersimage.com');
    define('HTTPS_COOKIE_DOMAIN', '.mastersimage.com');
    define('HTTP_COOKIE_PATH', '/catalog/');
    define('HTTPS_COOKIE_PATH', '/catalog/');

    Am I on the right track?

  6. #6
    osCMax Developer

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


    Default Re: Can create customer account, but customer cannot login

    Yep. Leave off the www portion.

    Next make sure your COOKIE_PATH is correct. Is your store sitting in the /catalog directory? If so, then your cookie path is correct.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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
    wdt
    wdt is offline
    New Member
    Join Date
    Apr 2011
    Posts
    5
    Rep Power
    0


    Default Re: Can create customer account, but customer cannot login

    I'm having a similar problem with 2.5RCb. The osCsid cookie is not being set, but the osCAdminID cookie is. Hence, admin works OK but any cart functions do not.

    I have oscmax installed locally in a directory called "store" in my home directory in my local development environment, which is a linux home server running apache. A portion of my includes/configure.php file is below:

    Code:
      
      define('HTTP_SERVER', 'http://localhost');
      define('HTTPS_SERVER', 'http://localhost');
      define('ENABLE_SSL', false);
      define('HTTP_COOKIE_DOMAIN', 'localhost');
      define('HTTPS_COOKIE_DOMAIN', 'localhost');
      define('HTTP_COOKIE_PATH', '/my_home_dir/store/');
      define('HTTPS_COOKIE_PATH', '/my_home_dir/store/');
    FWIW, osCAdminID is being stored with the host as "localhost", and the path as '/my_home_dir/store/my_admin_dir/'

  8. #8
    osCMax Developer

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


    Default Re: Can create customer account, but customer cannot login

    Quote Originally Posted by wdt View Post
    I'm having a similar problem with 2.5RCb. The osCsid cookie is not being set, but the osCAdminID cookie is. Hence, admin works OK but any cart functions do not.

    I have oscmax installed locally in a directory called "store" in my home directory in my local development environment, which is a linux home server running apache. A portion of my includes/configure.php file is below:

    Code:
      
      define('HTTP_SERVER', 'http://localhost');
      define('HTTPS_SERVER', 'http://localhost');
      define('ENABLE_SSL', false);
      define('HTTP_COOKIE_DOMAIN', 'localhost');
      define('HTTPS_COOKIE_DOMAIN', 'localhost');
      define('HTTP_COOKIE_PATH', '/my_home_dir/store/');
      define('HTTPS_COOKIE_PATH', '/my_home_dir/store/');
    FWIW, osCAdminID is being stored with the host as "localhost", and the path as '/my_home_dir/store/my_admin_dir/'
    Those settings look correct and are exactly how I set up my local configure.php file. One thing that could be causing it would be if your HTTP_COOKIE_PATH is incorrect or it doesn't match the DIR_WS_HTTP_CATALOG path.

    Another thing causing this could be that you are storing sessions on the file system instead of in the mysql database and your session directory path is not properly set, or the sessions directory is not writable by the server.
    Michael Sasek
    osCMax Developer


    osCmax Installation Service
    - Have our professionals install osCmax on your server - same day service!
    osCmax 2.5 User Manual - the must have beginners guide to osCmax v2.5

    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

  9. #9
    wdt
    wdt is offline
    New Member
    Join Date
    Apr 2011
    Posts
    5
    Rep Power
    0


    1 out of 1 members found this post helpful.

    Default Re: Can create customer account, but customer cannot login

    Quote Originally Posted by michael_s View Post
    Those settings look correct and are exactly how I set up my local configure.php file. One thing that could be causing it would be if your HTTP_COOKIE_PATH is incorrect or it doesn't match the DIR_WS_HTTP_CATALOG path.

    Another thing causing this could be that you are storing sessions on the file system instead of in the mysql database and your session directory path is not properly set, or the sessions directory is not writable by the server.
    Thanks for your answer, Michael. FWIW, running <?php echo phpinfo(); ?> showed the session.cookie_domain on my server setup was set to 'no value'. Changing the HTTP_COOKIE_DOMAIN from 'localhost' to '' solved the problem.

    I suppose that this setting needs to be set properly to track sessions in the database, too? I have
    Code:
      define('STORE_SESSIONS', 'mysql');
    but it still did not work if HTTP_COOKIE_DOMAIN was set to 'localhost' in /includes/configure.php.

Similar Threads

  1. jquery Customer Create Account Validation
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 11-12-2010, 11:54 PM
  2. jquery Customer Create Account Validation
    By michael_s in forum New osCommerce Contributions
    Replies: 0
    Last Post: 09-01-2010, 10:00 PM
  3. create new customer account email
    By joanstead in forum osCmax v2 Customization/Mods
    Replies: 7
    Last Post: 02-16-2006, 08:42 PM
  4. Create Customer Account Address Questions
    By joanstead in forum osCMax v2 Features Discussion
    Replies: 0
    Last Post: 02-16-2006, 06:31 AM
  5. Customer Account + login + add new user via admin
    By jdawes in forum osCMax v1.7 General Mods Discussion
    Replies: 0
    Last Post: 03-31-2004, 12:35 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
  •