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 do you end a function in python?
Which is used to maintain the value of a variable over different pages?
Do you know is it possible to extend the execution time of a php script?
Is php closing tag necessary?
Is it easy to learn php?
hello experts good morning to everyone ! at present am now learning LAMP course sir( linux, apache,mysql and php) after finishing this course can i create my own website without investment is it possible ? please can any one tell sir and also tell me how can i upload my project after finishing the project in internet ? please tell the ways sir please send ur valuable suggestions to kiranpulsar2007@gmail.com
Declare a new variable in php equal to the number 3;
What is the use of friend function?
Is python similar to php?
Which array function checks if the particular key exists in the array?
What’s the difference between md5(), crc32() and sha1() crypto on PHP? -
How would you determine the size of a file in php?