Reply to Re: Table schema for user login system?

Your name:

Reply:


Posted by Michael Fesser on 09/30/07 19:35

..oO(Dikkie Dik)

>Michael Fesser wrote:
>>
>> In my system one account = one user. The accounts table keeps user
>> names, login names, password hashes, account creation and expiration
>> dates, date of last login, privilege and status flags and such things.
>
>So what do you do if you want to disable login for that user? You'd want
>to remove the account, but not the user. Account data are "live" data,
>while user data are "reference" (read-only) data. Even the nature of
>these entities is very different.

To disable an account I would just unset a bit in its 'privileges'
field. Then the user still exists, but can't login anymore.

Micha

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация