Re: : session problem

From: Date: Thu, 24 Jun 2004 15:54:03 +0000
Subject: Re: : session problem
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-34921@lists.php.net to get a copy of this message
On Thursday 24 June 2004 23:43, H. J. Wils wrote: [snip] > $_SESSION['logged_in'] = true; > $_SESSION['sid'] = $sid; > $_SESSION['user'] = $uid; > > $dt = date("Y-m-d H:i:s"); You should always session_write_close() before you redirect. > header("location: user.php?action=0"); You should be using an absolute URI rather than a relative one. And just to be safe always have an exit() right after your redirect header(s). -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* It is a hard matter, my fellow citizens, to argue with the belly, since it has no ears. -- Marcus Porcius Cato */ -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* Fun Facts, #14: In table tennis, whoever gets 21 points first wins. That's how it once was in baseball -- whoever got 21 runs first won. */

« previous php.db (#34921) next »