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
Is php good for career?
What is button in html?
What does the function get_magic_quotes_gpc() means?
Does session expire on closing browser?
How do you pass a variable by value?
What is difference between count or sizeof function in php?
What is encapsulation in php?
What is the use of isset() in php?
What are sql functions?
If we login more than one browser windows at the same time with same user and after that we close one window, then is the session is exist to other windows or not? And if yes then why? If no then why?
Is php better than python?
What is the difference between explode and split?
How do sessions work in php?
What is Different between Joomla And Magento?
What is a composer?