adspace
Answer Posted / Hitendra Kumar Trivedi
To set a cookie in PHP:nn```phpnsetcookie("cookie_name", "cookie_value", time() + (86400 * 30), "/" );n```nNote that the fourth parameter sets the path for which the cookie is valid. To destroy a cookie, set its expiration to an earlier date:nn```phpnssetcookie("cookie_name", "", time() - (86400 * 30));n```
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
List some features of php that are deprecated in php7?
hello all, I need some sample placement papers in lion bridge.. can anyone help me?
Explain me is it possible to destroy a cookie?
sort term descripttion form, report and uery
Write a program using while loop?
What is difference between static and final in php?
Tell me what kind of things have you done on the social side?
What is the current stable version of php? What advance thing in php7?
Which variable declarations within a class is invalid in php?
What sized websites have you worked on in the past?
How can we extract string "pcds.co.in" from a string "https://info@pcds.co.in" using regular expression of php? More on reg can you explain
What is the difference between htmlentities() and htmlspecialchars()?
What is trait in php?
Name and explain five of the PHP error constants?
What is the current stable version of php?