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 are the variables in php?
What is split function in php?
How can we increase execution time of a php script?
Is multilevel inheritance possible in php?
Explain what are some new features introduced in php7?
What does the php error 'parse error in php - unexpected t_variable at line x' means?
What is the use of print_r function in php?
What is stripslashes php?
Does php have a future?
How can you get web browser’s details using PHP?
What does $_cookie means?
What is an operator in php?
How to convert a string to lowercase in php?
How do you create an array in php?
Explain the ternary conditional operator in php?