View Full Version : setting cookies with php and suse linux

08-06-2005, 10:38 PM
I've set up a local development server on my desktop with Suse Linux, php, Mysql, apache.

For some reason, setcookie is not being invoked when I call it. I know this is the case because in Firefox I set the cookies setting to prompt me everytime a cookie request occurs, and I never get that prompt.

Could it be a conflict with seeing localhost as a valid domain?

I'm not sure where to start or look here.

Thanks for any help.

08-07-2005, 03:01 AM
Found an answer, applied it and it worked:

"localhost will not store cookies, the RFC will not allow it because you are using a name resolution and that name doesn't have an extension. Cookies are designed for second level and down. First level domains will not work. Hence localhost has no root extension. But you can get around this by using an IP address like

If you try this address it should work. is your computer. "