Jump to:

22976 Posts in 11493 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » Only one log in at a time for each member

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

Page: 1
Go to End
Author Topic: 253 Views
  • Futureweb
    Avatar
    Community Member
    232 Posts

    Only one log in at a time for each member Link to this post

    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

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: Only one log in at a time for each member Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Only one log in at a time for each member Link to this post

    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?

  • Futureweb
    Avatar
    Community Member
    232 Posts

    Re: Only one log in at a time for each member Link to this post

    thanks for the suggestion - and explaining how the forum does it!

    253 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.