RE: [PHP-INST] Cookie

From: Date: Tue, 04 Mar 2003 10:50:51 +0000
Subject: RE: [PHP-INST] Cookie
References: 1  Groups: php.install 
Request: Send a blank email to php-install+get-10268@lists.php.net to get a copy of this message
> I have PHP installed on Win2k IIS5.0 and I am trying to run the > following script: > > Here's the main code that is being executed: > > setcookie('lang', $_POST['lang'], time()+3600, '/'); > > header('Location: index.php'); > > What should happen is that the cookie is set [setcookie('lang', > $_POST['lang'], time()+3600, '/')] and then the redirect happens > [header('Location: index.php')]. > > For some reason the server will not set the cookie in my browser, > any ideas? This is a known bug with IIS I'm afraid - the workaround is to use a meta-refresh instead of header() Rich

« previous php.install (#10268) next »