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 kind of things have you done on the social side?
How do you measure variables?
Why many companies are switching their current business language to php? Where php basically used?
How to avoid the undefined index error?
What is meant by public, private, protected, static and final scopes?
Differences between get and post methods?
What is interface? Why it is used?
What is the sign to start variables in PHP?
What is rest api in php?
How to retrieve values out of an array?
Can php replace javascript?
How to add comments in php?
What is a php 5?
Difference between $message vs. $$Message in php.
How to break a file path name into parts?