Forum Moderators: coopster
If I remark out the header(), the cookie will be set correctely.
Any suggestions?
Be sure to read Marcia`s WebmasterWorld Welcome and Guide to the Basics [webmasterworld.com] post.
I´m not quite convinced that the combination of the Cookie and Location header field do not work together as Xuefer wrote. I´m using the following code on one site and it works just fine.
setcookie('hash', md5($form['password']));
header("Location: %%BASE_ADDRESS%%\r\n");Check whether your cookie is set without the redirect. Once it works try using the Location header as well. Perhaps redirecting to a page accessed via http over ssl and setting a cookie causes the problem. I haven´t checked that. Andreas