[Phplib-users] Two different auth classes in the same web site
Brought to you by:
nhruby,
richardarcher
|
From: Virilo T. <vi...@su...> - 2003-10-23 18:30:13
|
I have an auth subclass called 'Customer_Auth' and i need another =
subclass (i.e. Admin_Auth) for admins.
These classes have differents behaviors: ill never let anybody =
autoregister in Admin_Auth or visit as user 'nobody'.
These classes also will have differents tables in the database.
I havent thought if its better have two phplib copies, or one copy for =
both classes. In the second case, Im not sure if somebody could =
authenticate in customer pages and appears like authenticated because =
both classes uses the same session class (and table).
In the future I could use it to share different web pages in the same =
server.
Im not sure to be in the correct way. Has anybody a better solution? is =
there any example?
Thanks in advance:
Virilo Tejedor. Email: vi...@su...
Sorry for my english, my spanish is better.
|