[thelist] PHP SetCookie() function

Jay Greenspan jay at trans-city.com
Wed Mar 7 10:08:47 CST 2001


on 3/7/01 10:01 AM, Charles F. Johnson at charles at littlegreenfootballs.com
wrote:

> (i sent this to the list yesterday, but for some reason it never showed up.
> apologies if you're seeing it twice...)
> 
> i'm putting together a page on which i'd like to use the PHP SetCookie()
> function. i've done cookies with javascript before but this is the first
> time with PHP, and i seem to recall hearing about a problem of some kind
> with SetCookie(). i did a search of some of my usual php hangouts, but
> couldn't find anything related to this. does anyone know what i'm talking
> about, or have you used SetCookie() without problems? Any input appreciated.


The problem isn't the PHP function. It just sends out an HTTP header. The
problems, as always, come from the browsers. I think some of the browsers
are very picky about the exact form of the cookie. If memory serves, some of
the arguments are supposed to be optional but actually aren't ... or
something like that.

Any of you browser wonks want to pick this one up?

-j





More information about the thelist mailing list