What is the different between cookies and session in php?
Answer Posted / ekta aptel
1.Cookies are stored in client side.
Session are stored in server side.
2.Cookies stored limited amount of data.
Session stored unlimited amount of data.
3.Cookies can only store string. Session can store object.
4.We could be save cookie for future reference but session
couldn't. When user close their browser, they also lost the
session.
5. Cookies quite faster than a session.
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is php mean?
How to convert numbers to strings in php?
Which function can be used to delete a file?
Explain the importance of the function htmlentities.
What is json php?
How to get the position of the character in a string in php?
What is the differences between $a != $B and $a !== $B?
What are php errors?
When to use get and post request?
What is difference between isset and empty in php?
What is oops php?
Describe session in php.
What is the best way to avoid email sent through php getting into the spam folder?
What is a persistence cookie?
Tell me what does the scope of variables means?