Home > PHP > setcookie()

setcookie()

It sends an HTTP cookie to a client

Example

<?php
setcookie(“time”,time());
echo $_COOKIE['time'];
?>

Output

1337938449

EmailFacebookLinkedInMySpaceDiggTumblrStumbleUponShare
Beginner's Guide....
Categories: PHP Tags: , ,
Comments are closed.

Switch to our mobile site