Cookie
| From: | Nathaniel P. Wilkerson | Date: | Tue, 04 Mar 2003 06:20:33 +0000 |
| Subject: | Cookie | ||
| Groups: | php.install | ||
| Request: | Send a blank email to php-install+get-10260@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?