What is the different between cookies and session in php?
Answer Posted / deepinder
Cookies
- stored on CLIENT machine
- amount of data to be stored is LIMITED
- it can only store STRINGS
- quite FASTER than a session
Session
- stored on SERVER machine
- amount of data to be stored is NOT LIMITED
- it can store OBJECTS
- quite SLOWER as compared to cookies
| Is This Answer Correct ? | 38 Yes | 2 No |
Post New Answer View All Answers
Tell me what is needed to be able to use image function?
how to track user logged out or not? when a user is idle?
Tell me how to retrieve a cookie value?
How do you define a constant?
Tell us what does $_cookie means?
Explain the difference between unlink() and unset()?
What is __ invoke in php?
Where is my php ini file?
What are the different ways to login to a remote server?
Can we set session value in javascript?
What are the 3 scope levels available in php and how would you define them?
What is the sign to start variables in PHP?
Which is incorrect with respect to separating php code and html?
How can we destroy the cookie in php?
What is cakephp framework?