What is cookie and session in php?



What is cookie and session in php?..

Answer / Chandan Gupta

In PHP, cookies are small pieces of data stored on the client's computer by the web browser, while sessions are a method to store and maintain user data on the server. Cookies have limitations regarding size and security compared to sessions.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More PHP Interview Questions

What is use of isset function in php?

1 Answers  


What is filter_var?

1 Answers  


How to find a specific value in an array?

1 Answers  


What is static variable in php?

1 Answers  


What’s the special meaning of __sleep and __wakeup?

1 Answers  


How to display your correct URL of the current web page?

1 Answers  


Is PHP runs on different platforms (Windows, Linux, Unix, etc.)?

1 Answers  


How can you retrieve a cookie value?

1 Answers  


What is meant by nl2br()?

3 Answers  


Explain the difference between static and dynamic websites?

1 Answers  


Which is correct about mysqli and pdo?

1 Answers  


How do I use isdigit function?

1 Answers  


Categories