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
How to strip whitespace (or other characters) from the beginning and end of a string?
What is the function file_get_contents() usefull for?
What would occur if a fatal error was thrown in your php program?
What are examples of dependent variables?
Tell me what is the use of the function htmlentities?
What is dao in php?
Is php is dying?
Is salary fixed or variable cost?
What is an example of a variable?
armstrong number by using php while number is given by the keyboard.?
How can we check the value of a given variable is alphanumeric?
Explain which cryptographic extension provide generation and verification of digital signatures?
What is the main function of php?
How can we display the output directly to the browser?
How can you compare objects in php?