21309 Posts in 5738 Topics by 2603 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 159 Views |
-
Only one log in at a time for each member

6 December 2011 at 3:02pm
Hi all,
In silverstripe, someone can give their log in details with 10 people, who can all log in at once. I'm wondering if there was a clever way of stopping this - so if someone logs in to account this already logged in - either they can't log in, or the other user gets unlogged in (this is how some other systems I know work)
Now, I can see silverstripe knows who is logged in (just below here is a list of users currently online). So i'm thinking it should be possible to do this...
Any ideas?
Jon
-
Re: Only one log in at a time for each member

6 December 2011 at 3:05pm
actually, i did just notice that the forum page said i was currently online even after i'd logged out...
so maybe i can't rely on the that same feature -
Re: Only one log in at a time for each member

13 December 2011 at 9:35pm
The member has a 'Last Logged In' value stored on their account. The forum just checks whether this was less than 10 minutes ago so you can't detect if someone is logged in out of the box but you can implement it using your own code. You would need to use javascript to ping the server every 10, 30s perhaps?
-
Re: Only one log in at a time for each member

14 December 2011 at 8:45am
thanks for the suggestion - and explaining how the forum does it!
| 159 Views | ||
|
Page:
1
|
Go to Top |


