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
Explain the syntax for ‘foreach’ loop with example.
Explain what are psrs?
Where do we use get and post?
What is session cookies php?
What is dao in php?
What are traits?
What is env in laravel?
What does sign mean php?
What is the difference between null and empty?
What does $_cookie means?
What is htaccess in php?
What changes I have to do in php.ini file for file uploading?
What is the difference between single-quoted and double-quoted strings in php?
How can we create a database using php?
What is varchar mysql?