Jump to content

setcookie syntax query


timlondon

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.