PHP Cookie Problems?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Saroja
Forum Newbie
Posts: 2
Joined: Mon Sep 03, 2007 12:27 am

PHP Cookie Problems?

Post 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
User avatar
s.dot
Tranquility In Moderation
Posts: 5001
Joined: Sun Feb 06, 2005 7:18 pm
Location: Indiana

Post 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
Set Search Time - A google chrome extension. When you search only results from the past year (or set time period) are displayed. Helps tremendously when using new technologies to avoid outdated results.
Post Reply