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 to upload and play video in Php when u r in localhost?
How many data types are used by php?
What types of MYSQL function available for affecting columns
What is the basic function to search files for lines (or other units of text) that contain a pattern.
What is global variable php?
Which function is used in php to check the data type of any variable?
Is there an easy way to delete an element from a php array?
Is it possible to submit a form with a dedicated button?
Is empty check in php?
How many open modes available when a file open in PHP?
What is the use of mysql_fetch_array in php?
Is php easier than node?