Will Netscape allow PHP to set a cookie with only an IP address?

They have: 166 posts

Joined: Jan 2000

I'm working on an improvement to a new web site and have it hosted on a server with only an IP. When I try to set a cookie in IE, it works, but when I try it Netscape, it fails.

Here's the code I'm using:

$randval=rand();
setcookie ("cookie1",$randval,time()+36000,"/",".2x.1xx.9x.2xx",0);

interwovendesign.com
Quality web site design without the monthly maintenance fees!

Mark Hensler's picture

He has: 4,048 posts

Joined: Aug 2000

I have no idea.
You would think that that would be a basic function to incorporate... but then again, we're talking about a browser that AOL bought.

Mark Hensler
If there is no answer on Google, then there is no question.

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.