> 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 -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php