I built a site for a client that works great. The login sets a cookie and then subsequent pages read that cookie -- you can get to those pages only if the cookie exists. The usual stuff.
However, when the client launched the site, he put it in frames. The initial frame and the actual site are on different virtual servers. Now the cookie won't work.
I'm setting the cookie like this:
[SQL Query to look up user]
$row=mysql_fetch_array($result);
$id=$row[person_id];
setcookie ("cookie_name", $id, 14400);
On the next page, it does not find the cookie. I've tried adding paramters, like this:
setcookie ("cookie_name", $id, 14400, "", "actualsitename.com");
or
setcookie ("cookie_name", $id, 14400, "", "framesitename.com");
but that does not work.
Can anyone suggest a solution?
Thanks.