Results 1 to 7 of 7
  1. #1
    Join Date
    Apr 2006
    Location
    Labuan Island
    Posts
    361
    Plugin Contributions
    2

    Default Customers Login Issues

    Hi Zen Cart Team,

    I am wondering how to prevent a customer from logging into their account more than once at the same time as currently a customer can login from different computers within the same time. I just want to prevent if a customer A login to their computer from computer A, he/she cannot login to his/her account from computer B with the same account!
    [FONT=Comic Sans MS]"Whether you think you can, or you think you can't... YOU ARE RIGHT."[/FONT]
    [FONT=Comic Sans MS]GOOD LUCK !!![/FONT]

  2. #2
    Join Date
    Jun 2003
    Posts
    33,715
    Plugin Contributions
    0

    Default Re: Customers Login Issues

    Why do you need to do this?
    Please do not PM for support issues: a private solution doesn't benefit the community.

    Be careful with unsolicited advice via email or PM - Make sure the person you are talking to is a reliable source.

  3. #3
    Join Date
    Apr 2006
    Location
    Labuan Island
    Posts
    361
    Plugin Contributions
    2

    Default Customers Login Issues

    actually, I need this kind of prevention as requested by one of my client! Is it possible, Kim? I really need this kind of customization...
    [FONT=Comic Sans MS]"Whether you think you can, or you think you can't... YOU ARE RIGHT."[/FONT]
    [FONT=Comic Sans MS]GOOD LUCK !!![/FONT]

  4. #4
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Customers Login Issues

    What about the IP Address check, would that help?

    Admin > Configuration > Sessions > Check IP Address

    /edit: if that doesn't work, I do have a customization idea you can try...
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

  5. #5
    Join Date
    Apr 2006
    Location
    Labuan Island
    Posts
    361
    Plugin Contributions
    2

    Default Customers Login Issues

    thanx Blindside but its not working! I think that option is for another purposes...so, what is the another option?!
    [FONT=Comic Sans MS]"Whether you think you can, or you think you can't... YOU ARE RIGHT."[/FONT]
    [FONT=Comic Sans MS]GOOD LUCK !!![/FONT]

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,402
    Plugin Contributions
    6

    Default Re: Customers Login Issues

    There are draw backs to attempting this ...

    1 for testing purposes it is a problem as a store owner/staff to test various aspects ... this would make testing sites yourself or with others a real problem

    2 if the customer loses the connection ... now they cannot login for at least 24 minutes ... this will upset a lot of customers
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  7. #7
    Join Date
    Sep 2004
    Posts
    1,388
    Plugin Contributions
    4

    Default Re: Customers Login Issues

    For #1, he could have an exception rule for specifically assigned IP's, similar to the "down for maintenance" setup.

    For #2, what's to stop him from shortening the expiration on Zen sessions? Even still, this may be an issue for customers who use services like AOL, who get routed through a myriad of proxy's and may change IP's in the middle of browsing.

    If you still want to try this (and I'll emphasize that Linda's concerns are very valid), here's what you can do in simple terms...
    1. Make sure you store is set to store sessions in the DB. In the catalog-side configure.php...
      Code:
      define('STORE_SESSIONS', 'db');
    2. Edit the login scripting to include the customers_id. You'll need to look at the login page and associated functions.
    3. Whenever a login attempt occurs, verify the login all the way to the point that you have the customers_id, then...
      1. Check the IP against your white list as I described in response to Linda's concern. You could even use the same exclusion list that Zen keeps for site maintenance.
      2. Check the sessions table to see if that customers_id is already stored. If it's listed, don't continue; if not, allow the login.

    This will undoubtedly sprout other unforeseen issues as you go along, that's why I kept the direction simple. Be wary of what Linda said and you should be fine.
    Last edited by BlindSide; 6 Dec 2006 at 02:48 PM.
    Frank Koehl
    "Cleverly Disguised as a Responsible Adult"

    frankkoehl.com

 

 

Similar Threads

  1. v150 Customers having issues logging in..
    By CraftStudio in forum General Questions
    Replies: 4
    Last Post: 25 Sep 2013, 12:05 PM
  2. v139h Admin login redirects to customers login
    By jolion in forum General Questions
    Replies: 4
    Last Post: 24 Aug 2012, 07:27 AM
  3. Customers cannot login using my custom login box
    By pb4 in forum General Questions
    Replies: 13
    Last Post: 29 Nov 2010, 11:33 AM
  4. customers.php issues
    By jakumpe in forum General Questions
    Replies: 1
    Last Post: 13 May 2010, 03:04 AM
  5. Login issues; Customers
    By marcsneddon in forum General Questions
    Replies: 5
    Last Post: 1 Jul 2007, 06:09 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
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR