Hi everytime I reload my browser it said my cookie is not set. Is my code wrong? setcookie('youngcounter', 'dolinred', time() + 36000, '/', '.young.3host.biz');
Try this: setcookie('youngcounter', 'dolinred', time() + 36000, '/', 'young.3host.biz'); I made one simple change.
It sitll doesn't work. Cookies are still not set. if (!isset($_COOKIE['youngcounter'])) { setcookie('youngcounter', 'dolin', time() + 36000, '/', 'young.3host.biz'); } Is there anything wrong with the code?
Nope doesn't work still. Is it a problem with my host or my codes? I tried the codes in my localhost and the cookie is set, but I tried it on my website the cookie is not set.
Are you sure Ziaja? My cookies work fine in my local server. I was thinking there is a functional limit at my host. Anyway I am willing to hear about the obj_start() function if it can set up my cookie in my website.