Date: 01/13/00
- Next message: Francisco Sam Castillo: "[PHPLIB] validating users???"
- Previous message: vboy: "[PHPLIB] 2 login forms/validations in local.inc"
- In reply to: vboy: "[PHPLIB] 2 login forms/validations in local.inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On Thu, Jan 13, 2000 at 09:50:04AM +0100, vboy wrote:
VB> I have 2 areas in my web site which require 2 different login screens
VB> and authenticate users against 2 different tables,named user_parents
VB> and user_kids.
VB> How do I accomplish this by modifying the local.inc with the latest
VB> version of PHPLIB?
VB> 1) Should I use two different Auth Classes, named Kids_Auth and
VB> Parents_Auth, to contain 2 different version of auth_loginform() and
VB> auth_validatelogin()? Then I put open_page (...Kids_Auth...) and
VB> open_page (...Parents_Auth..) on the top of protected pages of kids
VB> and parents respectively.
VB> I tried. But failed. Why?
Because the auth class gets serialized as soon as it is created (on session
setup, that is called on the first page you look at). Once serialized, its
class "name" becomes "sticky", and the same class is used over and over in
all subsequent pages until auth expire or explicit login.
You may try reading the docu about the perm class, which I think should
help you in solving your problem.
Bye.
--
Massimiliano Masserelli | URL: http://www.interim.it/
Internet Images S.r.l. | Tel: +39-051-3390671
vicolo Viazzolo, 3 | Fax: +39-051-557890
40124 - Bologna - Italy |
-------------------------------------------------------------------------------
Regole:
(1) Il capo ha sempre ragione.
(2) Quando il capo ha torto, fare riferimento alla regola 1.
-
PHP3 Base Library Mailing List. Send messages to <phplib <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-request <email protected>> in
the body, not the subject, of your message.
- Next message: Francisco Sam Castillo: "[PHPLIB] validating users???"
- Previous message: vboy: "[PHPLIB] 2 login forms/validations in local.inc"
- In reply to: vboy: "[PHPLIB] 2 login forms/validations in local.inc"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

