What is the different between cookies and session in php?
Answer Posted / abhishek asati
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 ? | 3 Yes | 1 No |
Post New Answer View All Answers
What are the different filter functions used to filter a variable?
What is composer phar?
What is apache and php?
What are interfaces in php?
How can you send http header to the client in php?
What is scope of variable in php?
Can we run php on tomcat server?
What is the scope of a variable defined in a function?
Explain what is the difference between session and cookie?
Explain the casts allowed in PHP?
write a note on Testing the web site
Which function is used to read a file removing the html and php tags in it upwork?
How to check an element is exists in array or not in php?
Is php a case sensitive language?
What is printf in php?