Re: [Phplib-users] Re: Default Auth? 7.2d
Brought to you by:
nhruby,
richardarcher
|
From: S. <bj...@ba...> - 2002-02-26 14:07:41
|
Hi,
* Darryl Morgan wrote:
> login page to say I want to auth the user now and change the page_open() on
> each page to include authorisation. Not sure what other way you could go
> about this. Does anybody else have any suggestions?
Consider overwriting auth_preauth() in your own auth class:
function auth_preauth() {
return $this->auth_validatelogin();
}
and do an
$auth->login_if($again);
after your page_open() call. $again has to be set from your
login form (i.e. hidden field with value="yes").
--
PHP-Support * realitätsnahe Performance-Messungen mit Code-Analyse
Webapplikationsentwicklung * PHP-Schulungen * Consulting
0700-THINKPHP -*- bj...@th...
|