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 create the PHP Script to Calculate the Age Using the Inputs Of our Birth date and the Current date?
What is php call function?
Why overriding is called runtime polymorphism?
Can php run on windows server?
How to submit form without a submit button.
What types of images that PHP supports?
In forms when i am click submit button it will store on the desired table as well as it send to paticuler mail id. Any body know the answer plz give me detail information.
How do I clear my browser session?
how to convert PHP code in to java code
How to concatenate two strings in php?
Why are sessions used?
what are the differences between php and perl