Setting cookies with PHP help?

  • Thread starter Thread starter skinnypspplayer
  • Start date Start date
S

skinnypspplayer

Guest
I'm having a bit of trouble with setting cookies with PHP. Here's what I have:

$expiration = time()+60*60*24*365*1;
setcookie($conid, $username, $expiration);

The cookie is supposed to last a year but it seems like it's lasting for just a couple of minutes. What am I doing wrong?
 
Back
Top