timlondon Posted December 21, 2009 Share Posted December 21, 2009 How do i set the following cookie: $details = "this is the content"; setcookie("bobbly", $details, time()+100000, '/'); but without the time parameter? I've tried a few combinations including setcookie("bobbly", $details, '/'); but i have yet to find a syntax which works. I'm sure if probably very simple. Any help would be greatly appreciated. Link to comment https://forums.phpfreaks.com/topic/185894-setcookie-syntax-query/ Share on other sites More sharing options...
Adam Posted December 21, 2009 Share Posted December 21, 2009 $details = "this is the content"; setcookie("bobbly", $details, 0, '/'); http://php.net/manual/en/function.setcookie.php Link to comment https://forums.phpfreaks.com/topic/185894-setcookie-syntax-query/#findComment-981623 Share on other sites More sharing options...
timlondon Posted December 21, 2009 Author Share Posted December 21, 2009 Thanks MrAdam. Link to comment https://forums.phpfreaks.com/topic/185894-setcookie-syntax-query/#findComment-981629 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.