ublapach Posted April 27, 2008 Share Posted April 27, 2008 Can you name a cookie whatever you want? Link to comment https://forums.phpfreaks.com/topic/103156-cookie-names/ Share on other sites More sharing options...
dezkit Posted April 27, 2008 Share Posted April 27, 2008 yes <?php //Calculate 60 days in the future //seconds * minutes * hours * days + current time $inTwoMonths = 60 * 60 * 24 * 60 + time(); setcookie('the_longest_cookie_name_in_the_world_of_php_html_javascript_and_so_on', date("G:i - m/d/y"), $inTwoMonths); ?> Link to comment https://forums.phpfreaks.com/topic/103156-cookie-names/#findComment-528397 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.