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 is difference between core php and framework?
What are the string functions in php?
What is use of preg_replace in php?
When is a conditional statement ended with endif?
How php statement is different from php script?
Can we extend two classes in php?
What is Type hinting in PHP?
What are the characteristics of php variables?
How to use http headers inside php?
Are php sessions cookies?
Write a program to find the factorial of a number in php?
How to replace a substring in a given string in php?
What type of operation is needed when passing values through a form or an url?
How does session work in php?
What is use of htmlspecialchars php?