Setting Cookies for Personal Server

Hi all,

I have a minor problem that I can’t work out (and to add insult to injury, it’ll probably be bleeding obvious too!).
I’m used to settting a cookie for domains, i.e it becomes ‘.domain.tld’ in the setcookie() function. However, I’ve just ported this app over to my Ubuntu Server at home, and whatever I change the domain too, it just won’t work! I’ve tried .web and web (it’s server name internally) as well as it’s IP. Currently, the only way I can get it to work is by forgetting about defining a domain part. Is this the only way, or what is the bleeding obvious I’m missing?


make server name something like server.web

That didn’t seem to solve my problem, cookies still aren’t working, as I can’t get any further into the application!