> hmmmm.  This seemed to set the cookie just fine.  Does this mean that
> either localhost in the browser or Apache/PHP on a windows box has to set
> the cookie differently than on RedHat/Apache/PHP?  I am going on vacation
> next week and need to keep working on a project that is working fine on
the
> RedHat server, but not on my localhost.  Basically, by this test, it
sounds
> like on my laptop I have to use a
> header('Set-Cookie: ...);
> instead of
> setcookie ("coach_access[login_id]", "coach",0,"/","$cookhost");
> If so, I can't seem to get it to work with "coach_access[login_id]" as the
> cookie name.

That's because it's a bad name. To retrieve that value, you'd have to use

$_COOKIE['coach_access[login_id]'] and that's IF the client let's you set a
cookie with that name.

If you're trying to put an array into a cookie, use serialize().

---John Holmes...


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to