How to add a cookie?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / lamp
How to add a cookie,means what exactly...plz explain
Is This Answer Correct ? | 1 Yes | 7 No |
How can we register the variables into a Session?
7 Answers HCL, Star Computers, Trikon Networks,
What are arguments in php?
How to remove blank spaces from the string?
How big is varchar max?
How to create reusable code in php?
How can we make a constant in php?
What is mysqli_real_escape_string?
What are the difference between overloading and overriding in oops?
What are php keywords?
how can attached a file to a mail and attached a resume to a mail and received in id
When do you use define() and when do you use const. What are the main differences between those two?
What is the interface in php?