Re: Login with Remember me Feature

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Streater <tim@xxxxxxxxxxxxxxxx> writes:

> On 14 Aug 2011 at 14:23, Alekto Antarctica <alekto.antarctica@xxxxxxxxx> wrote: 
> 
>> *function loggedin()*
>> *{*
>> * if (isset($_SESSIONS['username']) || isset($_COOKIE['username']))*
>> * {*
>> * $loggedin = true;*
>> * return $loggedin;*
>> * }*
>> *}*
> 
> Why not just    return true;
> 
> And what happens if your "if" doesn't evaluate to true? What do you return then?
> 
> 
>> *<?php*
>> *
>> *
>> *if (loggedin==true)*
>> *{*
> 
> Should this be:
> 
>   if ($loggedin==true) ...
> 
> --
> Cheers  --  Tim

Are you aware that your posts have some very strange and unique line
endings?


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux