Hi guys,
On localhost I set my cookies with following code:
setcookie('cookiename', 'secret', time()+26297, '/', false);
As you can see, Im passing a boolean false as my domain parameter as browsers don't like domains with less than 2 dots and this is the way to bypass it. The only thing wrong with this method is the cookie is not available to localhost subdomains.
Anyone help would be greatly appreciated.
Thanks.