I think check_client simply checks to make sure a given session cookie has 
come from the same client (i.e., to prevent cookie stealing), and it only 
works for file based sessions. Doesn't look like it would prevent two 
separate logins (which would simply have different sessions and therefore 
different session cookies).

Anthony

On Tuesday, February 4, 2014 1:41:52 AM UTC-5, DeanK wrote:
>
> I've been searching around trying to figure out how to do this without 
> success.  I need to enforce only a single login per user.  Out of the box 
> you can login using the same credentials from different computers, but I 
> need logging in on a different computer to terminate the session of the 
> first log in.  Is this possible?  I found some posts that hinted at using 
> session.connect, but then i couldn't find "check_client" in the ebook...and 
> it didn't seem to work when i tested it.
>
>
> ## Limit single user sessions
> session.connect(request,response,check_client=True) 
>
> Any tips would be appreciated.  Thanks,
>
> Dean
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to