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
What is a variable cost example?
When are you supposed to use endif to end the conditional statement?
How to convert a string to uppercase in php?
Why would we use === instead of ==?
Tell me what is the definition of a session?
How can we change the value of a constant?
Is wordpress a php framework?
What is the use of trim function in php?
How many ways to include variables in double-quoted strings in php?
Can we override magic methods in php?
Explain the difference between static and dynamic websites?
What is $_ get and $_ post in php?
Do you know how to enable error reporting in php?
Write a program to find a string is palindrome or not?
What are the differences between mysqli_connect and mysqli_pconnect?