Explain setcookie() function in php?



Explain setcookie() function in php?..

Answer / Manoj Kumar Sharma

The setcookie() function is used to create, modify, or delete cookies in PHP. It sets a new cookie and sends it back to the user's browser. The syntax for setcookie() is: setcookie('name', 'value', time() + (86400 * $expire), '/');

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is difference between required and require_once in php?

1 Answers  


Is false empty php?

1 Answers  


what is the dirrence in PHP4 & PHP5 . ?

8 Answers  


Can anyone explain about join?

3 Answers  


Why php 7 is faster?

1 Answers  


Tell me what is the difference between exception::getmessage and exception::getline?

1 Answers  


What is the difference between $message and $$message ?

7 Answers   Oracle, TouchStone,


Is php good for career?

1 Answers  


What is the use of "enctype" attribute in a html form?

1 Answers  


How to create a public static method in PHP?

1 Answers  


How check submit button is clicked in php?

1 Answers  


What is the difference between characters  and #?

1 Answers  


Categories