Site maintenance: Sun 15 Nov, from 12:00 UTC, about 4–6 hours. Details

This cutover relies on some testing that is still incomplete so may be cancelled at short notice

Forums / General Questions / Customers Login Issues

Customers Login Issues

Locked

Started by tajul_ashyqin on 6 Dec 2006, 2:58 AM · Views: 1,217

Results 1 to 7 of 7
This thread is locked. New replies are disabled.
6 Dec 2006, 2:58 AM
#1
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

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! :wacko:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

6 Dec 2006, 3:09 AM
#2
Kim avatar

Kim

Obaa-san

Join Date:
Jun 2003
Location:
West Coast, North America
Posts:
26,739
Plugin Contributions:
0

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.

6 Dec 2006, 4:07 AM
#3
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: 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...:yes:

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

6 Dec 2006, 4:08 AM
#4
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

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

6 Dec 2006, 4:23 AM
#5
tajul_ashyqin avatar

tajul_ashyqin

Zen Follower

Join Date:
Apr 2006
Location:
Labuan Island
Posts:
362
Plugin Contributions:
1

Re: Customers Login Issues

thanx Blindside but its not working! :no: I think that option is for another purposes...so, what is the another option?! :D

"Whether you think you can, or you think you can't... YOU ARE RIGHT."
GOOD LUCK !!!

6 Dec 2006, 5:00 AM
#6
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

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!]
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!

6 Dec 2006, 1:45 PM
#7
blindside avatar

blindside

Totally Zenned

Join Date:
Sep 2004
Posts:
1,237
Plugin Contributions:
1

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

Frank Koehl
"Cleverly Disguised as a Responsible Adult"

frankkoehl.com