one user information is showing in one computer only
Moderator: General Moderators
one user information is showing in one computer only
i want to restrict users to see particular user information according to username when other computer is showing that information.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
If I understand correctly, if a user is logged in, you don't want someone else to be able to log in with that username on another machine.
Most likely you will need a timestamp field in a database that is updated with each action the user does. Determine a time online as like within the last 5 minutes or so.
Whenever someone tries to login, check to see if that timestamp is within the last 5 minutes. If it is, restrict access from that user.
Most likely you will need a timestamp field in a database that is updated with each action the user does. Determine a time online as like within the last 5 minutes or so.
Whenever someone tries to login, check to see if that timestamp is within the last 5 minutes. If it is, restrict access from that user.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- Ambush Commander
- DevNet Master
- Posts: 3698
- Joined: Mon Oct 25, 2004 9:29 pm
- Location: New Jersey, US
this would be better handled by a client side language, as mentioned above. You could execute a javascript function in a hidden iframe or something similar, to update the timestamp on an interval. Then there's the issue of server problems, and the page getting stalled and not loading.
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia
- Chris Corbyn
- Breakbeat Nuttzer
- Posts: 13098
- Joined: Wed Mar 24, 2004 7:57 am
- Location: Melbourne, Australia