ublapach Posted April 27, 2008 Share Posted April 27, 2008 Can you name a cookie whatever you want? Quote 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); ?> Quote Link to comment https://forums.phpfreaks.com/topic/103156-cookie-names/#findComment-528397 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.