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
How do I run a php script?
What is mysql_fetch_object?
Tell me what kind of things have you done on the social side?
How can you encrypt password using php?
Write the statements that are used to connect php with mysql
How to get no. of rows using MYSQL function?
Why many companies are switching their current business language to php?
Is php front end?
Which software is best for php?
What is the use of htmlspecialchars in php?
Tell me how can you pass a variable by reference?
What is the function file_get_contents() usefull for?
What is user defined function in php?
What is the purpose of break and continue statement?
What is php default argument?