Run ❯
Get your
own PHP
server
Result Size:
625 x 565
×
Change Orientation
Change Theme, Dark/Light
Go to Spaces
<!DOCTYPE html> <?php $cookie_name = "user"; $cookie_value = "John"; setrawcookie($cookie_name, $cookie_value, time() + (86400 * 30), "/"); // 86400 = 1 day ?> <html> <body> <?php echo "Cookie is set."; ?> </body> </html>
Cookie is set.