Answer Posted / rupali
bool setcookie ( string $name [, string $value [, int
$expire [, string $path [, string $domain [, bool $secure
[, bool $httponly ]]]]]] )
for e.g.
<?php
$value = 'something from somewhere';
setcookie("TestCookie", $value);
setcookie("TestCookie", $value, time()+3600); /* expire in
1 hour */
setcookie("TestCookie", $value, time()
+3600, "/~rasmus/", ".example.com", 1);
?>
Is This Answer Correct ? | 7 Yes | 0 No |
Post New Answer View All Answers
What is mean tnq
Does php has a future?
Which is better php or nodejs?
Is numeric in php?
In how many ways we can retrieve the data in the result set of mysql using php?
Is ruby on rails php?
What is the super method?
What is array filter php?
Write down the benefits of php7?
What websites use php?
What is a trait in php?
which will print out the php call stack?
What is psr in php?
How can we change the maximum size of the files to be uploaded?
How can MYSQL functions be available with PHP?