[PHP] No cookie is being set?

2004-01-02 Thread Cesar Aracena
Hi again, I have the following code to first start a session and then write a cookie... is that so hard? Well it is starting the session but the cookie is not being set. see: $row = mysql_fetch_array($result); $_SESSION[user] = $row[member_id]; if ($_POST[autologin] == yes) { $id =

RE: [PHP] No cookie is being set?

2004-01-02 Thread Larry Brown
] No cookie is being set? Hi again, I have the following code to first start a session and then write a cookie... is that so hard? Well it is starting the session but the cookie is not being set. see: $row = mysql_fetch_array($result); $_SESSION[user] = $row[member_id]; if ($_POST[autologin] == yes

Re: [PHP] No cookie is being set?

2004-01-02 Thread Cesar Aracena
] Subject: [PHP] No cookie is being set? Hi again, I have the following code to first start a session and then write a cookie... is that so hard? Well it is starting the session but the cookie is not being set. see: $row = mysql_fetch_array($result); $_SESSION[user] = $row[member_id

Re: [PHP] No cookie is being set?

2004-01-02 Thread Matt Grimm
? -Original Message- From: Cesar Aracena [mailto:[EMAIL PROTECTED] Sent: Friday, January 02, 2004 2:28 AM To: [EMAIL PROTECTED] Subject: [PHP] No cookie is being set? Hi again, I have the following code to first start a session and then write a cookie... is that so hard? Well

Re: [PHP] No cookie is being set?

2004-01-02 Thread Chris Shiflett
--- Cesar Aracena [EMAIL PROTECTED] wrote: I have the following code to first start a session and then write a cookie... is that so hard? Not hard at all. However, when trying to identify a problem, it is much easier to try to isolate it. Forget the session, and see if you can set a cookie: ?

RE: [PHP] No cookie is being set?

2004-01-02 Thread Chris Shiflett
--- Larry Brown [EMAIL PROTECTED] wrote: when I find a function doesn't work right and I am using variables in its execution I run an echo/die combination immediately before the function to verify the data being fed to it is as it should be. This is a very good suggestion, although your

Re: [PHP] No cookie is being set?

2004-01-02 Thread Cesar Aracena
Hi all, and thanks for all your kind hel. I found the problem although I don't know what was causing it. I simply moved the setcookie() function to another page (standalone to say) and it worked perfectly... my Cookies folder started to show/delete the cookie on each request, and also the site