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 |
what are the errors and when we get that particular errors.and who will give that errors
if you run the app program all vendor open items are cleared but is it possible to reverse the again again open items please tell me the answer
What library is used for pdf in php?
Code to upload a file in PHP?
Which programming language does php resemble to?
Why do we need session?
Do while loops?
What is foreach loop in php?
What is str_replace()?
What is meant by nl2br()?
4 Answers Rushmore Consultancy,
How to call php function from javascript using ajax?
What is the content of /etc directory?