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
How does the identity operator === compare two values?
Do you know what are traits?
What is php stack?
Differences between get and post methods?
What is the mysql injection?
Are parent constructors called implicitly inside a class constructor?
How to call a php function from another php file?
Where are the persistent cookies stored on your computer?
What is the interface in php?
Does wordpress still use php?
Does csrf token change?
Explain php split() function.
How to make a class in php?
What is mysqli_query?
Which is better python or php?