What is the different between cookies and session in php?

Answer Posted / ritu

Cookies is an object but session is a process
cookie is an identifier stored on client.session is used
for storing data on the server between client requests.
cookies are stored in client mechine.session are stored in
server mechine

Is This Answer Correct ?    6 Yes 2 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What percentage of websites use php?

718


What is the use of header() function in PHP? What the Limitation of HEADER()?

765


How do you access a get requests url parameter with php?

724


What is the w3c?

8710


Can we use onclick in submit button?

740


What is explode() in php?

754


How to store the uploaded file to the final location?

737


What is the most convenient hashing method to be used to hash passwords?

683


What is difference between required and require_once in php?

788


What does it mean when it says the csrf token is invalid?

666


What is a simple php method to make a cross domain data request?

701


What is difference between isset and empty in php?

731


Which is true about the singleton design pattern?

713


What is php session start?

727


Does php have block scope?

700