What is the different between cookies and session in php?
Answer Posted / ekta aptel
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 ? | 0 Yes | 0 No |
Post New Answer View All Answers
How we can declare variable in php?
Explain Type juggling?
How to execute a php script from the command line?
How to concatenate two strings in php?
Why php is sometimes called as embedded scripting language?
Can we use php variable in javascript?
How to get the directory name out of a file path name?
How to download files from an external server with code in php?
Are static variables final?
Which library is used in php to do various types of image work?
How will you calculate days between two dates in PHP?
What is php? Why it is used?
How does php strcmp work?
What function should you use to join array elements with a glue string?
What is $_ get in php?