Re: Help: header function

From: Date: Fri, 26 Jul 2002 10:25:10 +0000
Subject: Re: Help: header function
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-109697@lists.php.net to get a copy of this message
Hello k, Friday, July 26, 2002, 10:56:58 AM, you wrote: kamesh> Hi: kamesh> After validating the login, i am using the header function to call the same kamesh> page again. The page uses session_start(). But the session variable, kamesh> namely the login id is not changed. When i refresh the page manually kamesh> session variable is changed. What is the problem? the header function i kamesh> use is header(location:"http://PHP_SELF") first: be sure u have register_globals=On, then u have to use header("Location: http://$PHP_SELF") if u have register_globals=Off then u need use header("Location: http://$_SERVER['PHP_SELF']") -- Best regards, Alexander Kuznetsov

« previous php.general (#109697) next »