Lukas Kahwe Smith schrieb:
> Matthias Nothhaft wrote:
>> Haris Zukanović schrieb:
>>> I wish to prevent different users from logging in using the same
>>> username (sharing the username). Where would I best solve this in symfony?
>> Do you want to prevent one user from logging in simultaneously multiple
>> times?
>>
>> Why?
>>
>> Hm.. I would not prevent that. What if a user's machine crashed and he
>> wants to login after a reboot? How do you want to distinguish between
>> expiration and 'other problems'?
> 
> the common approach is to simply kill all previous sessions and create 
> the new session. at any rate, you will need to probably store your 
> sessions in a database (or at the very least a mapping table 
> session-user id), so that you can easily find the previous sessions you 
> need to kill.

and you do this check / kill on each user login!?
seems to make sense to make sure that the system is clean..
I'll put it on my todo list  :-)

Regards,
Matthias






--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to