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 polymorphism with example in php?
What is the function file_get_contents() usefull for?
What are php magic quotes?
Which is correct about mysqli and pdo?
Which function would you use to determine the length of a string in php?
Is php the same as html?
Explain mysql_error().
How to create reusable code in php?
CWD is a type of shell variable. State Whether True or False?
What is the difference between query and question?
explain php variable length argument function.
What is inheritance in php with example?
What is oops php?
Do you know what is the differences between $a != $B and $a !== $B?
How to pass variables and data from php to javascript?