Re: [PHPLIB] $user_id From: Shawn Patton (shawn <email protected>)
Date: 02/17/00

Christoph Aigner wrote:

> hello,
>
> sorry for asking questions that often, but does anyone know how to get the
> user_id of the currently registrated user in an authenticated session?

$user->id and $auth->auth["uid"].
Read over the Auth and User section of the manual... it's described there.

>
>
> i've allready tried
>
> page_open(array("sess" => "A_Session", "auth" => "A_Auth", "perm" =>
> "A_Perm", "user" => "A_User"));
>
> $uid = $user->get_id();
>
> ....
>
> but that doesn't work...
>
> thx
>
> christoph
>
> -
> 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.

-
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.