Date: 04/03/01
- Next message: fabrizio.ermini <email protected>: "Re: [phplib] phplib & portals"
- Previous message: Potysch <email protected>: "[phplib] mssql_affected_rows()"
- Next in thread: fabrizio.ermini <email protected>: "Re: [phplib] phplib & portals"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2 Apr 2001, at 6:01, Fernando Nunes wrote:
> The main question is how to work with phplib authentication module
> using
> a hrefs only....
> As i can tell Auth system is called when page_open is. If I want to
> activate database connectivity i need to make a call to page_open!
> If autentication is being entered, I cannot write anything before or
> after autentication. I need to create dynamic content based on phplib
> DB before and after the login form.
> I think now it's clearer...
Yes, I hope... let's see: you have some part of your website that
don't require authentication. But since you wish to put up a
loginform, some other part will require it. And you do want to put up
a "fixed" login area on the page, and not one that is called on
demand.
You could put up a structure like that:
Put Default auth in top of all pages.
Protect the restricted area with the apposite function ("login_if" the
user is nobody, IIRC).
Create a "login form" embedded somewhere in your portal that
calls a routine that validates the data against Auth_user (or
whatever you use for storing users) and if succesful creates a
"login" cookie for the user.
Create a Preauth() function to detect said "login" cookie; this will
avoid the popping up of the loginform if the user have already
authenticated using the "other" login form.
PS: you can use $DB_sql functionality without ever using other
part of PHPlib if you wish; you just have to include the library file
correspondant to your DB. However, if you need Auth, then you
should prepend all pages of your applications with page_open - this
is the only way to assure "consistency" within your application,
i.e., generally, your website.
HTH, bye
/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/\/
Fabrizio Ermini Alternate E-mail:
C.so Umberto, 7 faermini <email protected>
loc. Meleto Valdarno Mail on GSM: (keep it short!)
52020 Cavriglia (AR) faermini <email protected>
---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>
- Next message: fabrizio.ermini <email protected>: "Re: [phplib] phplib & portals"
- Previous message: Potysch <email protected>: "[phplib] mssql_affected_rows()"
- Next in thread: fabrizio.ermini <email protected>: "Re: [phplib] phplib & portals"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

