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 delimiter php?
Explain about require and include function?
Which php framework is best for web development?
What is overloading and overriding in php?
Explain mixed and callback functions?
What is the difference between mysqli_fetch_object() and mysqli_fetch_array()?
How to define a user function?
Which function can be used to delete a file?
How can we connect to a mysql database from a php script?
When are you supposed to use endif to end the conditional statement?
How to delete file in php?
Explain the difference between array_merge() and array_combine()?
Why delimiter is used in mysql?
What is singleton class in php?
How do you count numbers in php?