Re: [PHP] cookies and redirection

2003-08-14 Thread Chris Shiflett
--- Joaco [EMAIL PROTECTED] wrote: I set a cookie in my code and then redirect the user using a header function. When I do this, my cookie is not created. If i remove the header function, then it is. Is there a way around this? If you are using IIS, read this:

Re: [PHP] cookies and redirection

2003-08-14 Thread Chris Shiflett
--- Chris Boget [EMAIL PROTECTED] wrote: You can't use any functions that send headers to the browser (and that includes setcookie()) before you use: header( 'location: http://blah' ); The browser will choke. I'm not sure what gave you this idea, but this is false. What browser were you

Re: [PHP] cookies and redirection

2003-08-14 Thread Chris Boget
I have a small problem was wondering if anyone out there knew anyhting about this. I set a cookie in my code and then redirect the user using a header function. When I do this, my cookie is not created. If i remove the header function, then it is. Is there a way around this? Yeah, set the

Re: [PHP] cookies and redirection

2003-08-14 Thread Chris Boget
--- Joaco [EMAIL PROTECTED] wrote: I set a cookie in my code and then redirect the user using a header function. When I do this, my cookie is not created. If i remove the header function, then it is. Is there a way around this? If you are using IIS, read this:

[PHP] cookies and redirection

2003-08-14 Thread Joaco
I have a small problem was wondering if anyone out there knew anyhting about this. I set a cookie in my code and then redirect the user using a header function. When I do this, my cookie is not created. If i remove the header function, then it is. Is there a way around this? -- PHP General