List Info

Thread: PEAR::Auth::setExpire(s)




PEAR::Auth::setExpire(s)
user name
2007-11-04 18:37:32
Hi ,

Anyone knows how to use PEAR::Auth::setExpire(timeInSeconds)
?

I did this way but it doesn't work:

if( $auth->checkAuth())
{
    $auth->setExpire(10);

    $_SESSION["_authsession"] = array(
        "data" => array(),
        "registered" => 1,
        "username" => "guest",

    );

}

Thanks in advance!

--Linda
Re: PEAR::Auth::setExpire(s)
user name
2007-11-05 00:59:10
On 11/4/07, Junhua Wan <jwan0417gmail.com> wrote:
> Hi ,
>
> Anyone knows how to use
PEAR::Auth::setExpire(timeInSeconds) ?
>
> I did this way but it doesn't work:
>
> if( $auth->checkAuth())
> {
>     $auth->setExpire(10);
>
>     $_SESSION["_authsession"] = array(
>         "data" => array(),
>         "registered" => 1,
>         "username" => "guest",
>
>     );
>
> }

How do you know it's not working?

-- 
Justin Patrin

-- 
PEAR Development Mailing List (http://pear.php.net/)
To unsubscribe, visit: http://www.php.net/unsub
.php


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )