What is cookies? How to create cookies in php?



What is cookies? How to create cookies in php?..

Answer / Jayant Singh Rawat

Cookies are small pieces of data stored on a user's computer by the web browser. They allow websites to store information about user preferences or session state between visits. To create a cookie in PHP, you can use the setcookie() function: setcookie('cookie_name', 'cookie_value', time() + (86400 * 30), '/');

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

How to find a specific value in an array?

1 Answers  


How can we display information of a variable and readable by a human with php?

1 Answers  


Write a program to display a table of any given number?

1 Answers  


How to take a substring from a given string in php?

1 Answers  


Tell me how can we define a variable accessible in functions of a php script?

1 Answers  


How to execute an sql query? How to fetch its result?

1 Answers  


What are the advantages of stored procedures, triggers, indexes in php?

1 Answers  


How many types of errors in php?

1 Answers  


How to find a substring from a given string in php?

1 Answers  


How do you connet mysql database with php?

1 Answers  


i'm b.com graduate and doing MCM- 1year(Master in Computer Management. i'm very interested in PHP? Please tell me some suggetion and the scope of PHP in the market. My E-mail pawan.register@gmail.com Thanks & Regards Pawan.

1 Answers  


How does the identity operator ===compare two values in PHP?

1 Answers  


Categories