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 are php sessions stored?
What will the ?getdate() function returns in PHP?
what are the differences between php and perl
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.
Does php have multiple inheritance?
Explain the ternary conditional operator in php?
When sessions ends?
What is default session time and path in PHP. How to change it?
PHP can be used frontend of for backend?
What sized websites have you worked on in the past?
What is csrf validation?
What are the limitations or drawbacks of PHP ?