Hi José,
By default, Zend_Auth places the authenticated identity into the PHP
session using Zend_Session upon authentication success.
Zend_Auth exposes the persisted identity, illustrated by the following
example from the manual:
$auth = Zend_Auth::getInstance();
if ($auth->hasIdentity()) {
// Identity exists; get it
$identity = $auth->getIdentity();
}
Does this not meet your needs? If not, please help us to help you by
posting some more information, such as relevant code snippets. :)
Best regards,
Darby
José de Menezes Soares Neto wrote:
> hi,
>
> i am trying to assign username for use it in templates, like header.tpl
> and footer.tpl
> but, i don't know how to assign it only one time (in logon proccess) and
> use it in all templates that i want.
>
> i tried to use session, but didnt work...
>
> does someone could help me?
>
> best regards,
>
> José de Menezes