xProteuSx Posted December 1, 2006 Share Posted December 1, 2006 What the heck does this error mean?"Warning: setcookie() expects parameter 3 to be long"My cookie line look something like this:setcookie("randomizer", "$randomkey", "time()+14400", ".sub.mysite.com"); Link to comment https://forums.phpfreaks.com/topic/29048-setcookie-expects-parameter-3-to-be-long/ Share on other sites More sharing options...
gluck Posted December 1, 2006 Share Posted December 1, 2006 Put a proper time value in the third argument Link to comment https://forums.phpfreaks.com/topic/29048-setcookie-expects-parameter-3-to-be-long/#findComment-133091 Share on other sites More sharing options...
xProteuSx Posted December 1, 2006 Author Share Posted December 1, 2006 I figured it out ... too many quotes ... It works if I put it in like this:setcookie("randomizer", $randomkey, time()+14400, ".sub.mysite.com", 0); Link to comment https://forums.phpfreaks.com/topic/29048-setcookie-expects-parameter-3-to-be-long/#findComment-133093 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.