Moonlight
01-03-2000, 09:47 AM
I'm trying to create some cookies and after creating the cookies, to redirect the user to another page.
It will be used in the Login and Logout scripts.
I have the following :
SetCookie("TOGRCLID",$Acc_ID,time()*3600*6,"/bguilds/",".togrc.com");
SetCookie("TOGRCLPwd",$Acc_Password,time()*3600*6,"/bguilds/",".togrc.com");
header("Location: http://www.togrc.com/bguilds/\n\n");
The above example would not create any cookies but would do the redirect.
If I remove the header statement, then the cookies would be created.
What should I do?
Thanks,
Moonlight
[This message has been edited by Moonlight (edited 01-03-00@09:48 am)]
It will be used in the Login and Logout scripts.
I have the following :
SetCookie("TOGRCLID",$Acc_ID,time()*3600*6,"/bguilds/",".togrc.com");
SetCookie("TOGRCLPwd",$Acc_Password,time()*3600*6,"/bguilds/",".togrc.com");
header("Location: http://www.togrc.com/bguilds/\n\n");
The above example would not create any cookies but would do the redirect.
If I remove the header statement, then the cookies would be created.
What should I do?
Thanks,
Moonlight
[This message has been edited by Moonlight (edited 01-03-00@09:48 am)]