View Single Post
Old 12-08-2007, 09:05 AM   #8 (permalink)
Jay
The Contributor
Good Samaritan 
 
Join Date: Dec 2007
Posts: 60
Thanks: 5
Jay is on a distinguished road
Default

Sorry iisbum, your last tip was incorrect

In your example you set expire to '0', read this:

Quote:
Originally Posted by PHP Manual
If set to 0, or omitted, the cookie will expire at the end of the session (when the browser closes).
You should probably set it to

(30 days)
PHP Code:
time() + (60 60 24 30
That way you get more ads, it will truly be (for 30 days, at least) not his first visit
Jay is offline  
Reply With Quote