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
Will a comparison of an integer 12 and a string "13" work in php?
Is salary a ratio or interval?
Tell us how can we display the output directly to the browser?
What is the meaning of ‘escaping to php’?
How can we change the maximum size of the files to be uploaded?
Code to open file download dialog in PHP?
What are php filters?
Do you know what are traits?
How send email in php?
What is http php?
Why framework is used in php?
Is php a programming language?
What is php constructor?
How to make a class in php?
Does php 5 support exceptions?