How do I restrict to the same user's double_login?

L

Lawrance

DearAll:

How do I restrict to the same user's double_login?
Is there any way to solve this problem under "user closed browser" or
"computer crash" condition ?


Best Regards,
Lawrance Chang
 
B

Bhaskardeep Khaund

Hi,

You can use a database field or a cookie for check whether the login is active or not. If it is don't let the second user login. Well, cookie is a viable option of take care of issues like user closed browser or computer crash. Make a cookies which expires when the session of that user ends. If you don't define its expirery time and date, by default it would expire when the user session ends.

Hope this helps

Bhaskardeep Khaund
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top