RE: [PHP] No cookie is being set?

2004-01-02 Thread Larry Brown
shouldn't $row[member_id] be $row['member_id']. In case anyone can profit from this, 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. In this

Re: [PHP] No cookie is being set?

2004-01-02 Thread Cesar Aracena
As extrange as can be, the echo function simply returns the following: 31536000); but not the setcookie, $varname and $value parts... What's this? Do I havve a missconfiguration in php.ini file? Thanks, Cesar Aracena Larry Brown [EMAIL PROTECTED] escribió en el mensaje news:[EMAIL PROTECTED]

Re: [PHP] No cookie is being set?

2004-01-02 Thread Matt Grimm
Why not just echo the ID var separately? Less confusing with the escaped quotes and all. If you're not getting an ID var, it might be because you didn't use the array quotes ($row['member_id']) as Larry mentioned. Also be aware: If setcookie() successfully runs, it will return TRUE. This does

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