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. Quote 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 Quote 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. Quote Link to comment https://forums.phpfreaks.com/topic/185894-setcookie-syntax-query/#findComment-981629 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.