[PHP] Re: Login with Remember me Feature

2011-08-14 Thread Richard Riley
Tim Streater writes: > On 14 Aug 2011 at 14:23, Alekto Antarctica > wrote: > >> *function loggedin()* >> *{* >> * if (isset($_SESSIONS['username']) || isset($_COOKIE['username']))* >> * {* >> * $loggedin = true;* >> * return $loggedin;* >> * }* >> *}* > > Why not justreturn true; > > An

Re: [PHP] Re: Login with Remember me Feature

2011-08-07 Thread Andre Polykanine
Hello Richard, RR> See ob_start and family. Alekto doesn't use them in that code. -- With best regards from Ukraine, Andre Skype: Francophile My blog: http://oire.org/menelion (mostly in Russian) Twitter: http://twitter.com/m_elensule Facebook: http://facebook.com/menelion -- PHP Gen

Re: [PHP] Re: Login with Remember me Feature

2011-08-07 Thread Sean Greenslade
On Sun, Aug 7, 2011 at 3:11 PM, Richard Riley wrote: > Andre Polykanine writes: > > > Hello alekto, > > > > I've got several notes to point out: > > 1. You can't do neither a header(), nor a SetCookie() after any echo > > on the page. The out-of-php pieces of the page included. > > No

[PHP] Re: Login with Remember me Feature

2011-08-07 Thread Richard Riley
Andre Polykanine writes: > Hello alekto, > > I've got several notes to point out: > 1. You can't do neither a header(), nor a SetCookie() after any echo > on the page. The out-of-php pieces of the page included. Not true. See ob_start and family. -- PHP General Mailing List (http