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 built on?
How to turn on the session support?
What is $_ files in php?
How do you destroy a session?
Tell me how is it possible to propagate a session id?
How to convert a string to uppercase in php?
Write a program to display a table of any given number?
Is server side a session?
How long do php sessions last?
Write a query to find the 2nd highest salary of an employee from the employee table?
What is str_replace()?
What is the correct syntax of mail() function in php?
What is mysql_fetch_array?
What beforeFilter() is used?
How to do single and multi line comment in php?