Page 1 of 1

PHP Cookie Problems?

Posted: Mon Sep 03, 2007 12:45 am
by Saroja
I've got cookie problems, i've read several articles and still can't get it right. The cookie is only temporary and I want it to stay as long as possible. but i visit one website there is many articles on the issue of cookie problems. it is very simple & short. the visitor can easily get it. if you want to visit this site then mail me script001@rediffmail.com

Posted: Mon Sep 03, 2007 1:37 am
by s.dot
So set the cookie to persist for a long period of time....

Code: Select all

setcookie('name', 'value', time()+60*60*24*365); //1 year