Computer Science Canada
how to set a permenet cookie?
|Author:||Amailer [ Fri Mar 05, 2004 6:47 pm ]|
|Post subject:||how to set a permenet cookie?|
hey, im using this:
and i was wondering how do i make it so that the cookie lasts even if you restart your browser/restart your computer?
With the code above it seems that when i quit my browser and start it up again the cookie is gone... :S
|Author:||Amailer [ Fri Mar 05, 2004 7:26 pm ]|
NVM this problem is solved, but another one has come one.
this is what i do to update the hits...
see if you go back to the site after you have closed the browser, the cookie is not set just yet unless you refresht he site page (or click another link), problem is that the if(!isset($HTTP_COOKIE_VARS['unique_hits']) works just when you go to the site.