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
Is php a backend?
Explain me what is the goto statement useful for?
What advance thing in php7?
What does $globals mean?
What is php session id?
What are the difference between echo and print?
What are php data types?
What Is a Persistent Cookie?
Why do we use hooks?
Is php faster than javascript?
Is overloading possible in php?
What is the php function that removes the last element of the array and returns it?
What is the use of addslashes in php?
Which operator is used to concatenate two strings in PHP?
Tell me which programming language does php resemble to?