What is difference between session and cookie in PHP ?

Member

by zella , in category: Technology , 3 years ago

What is difference between session and cookie in PHP ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by irwin , 3 years ago
  • Session and cookie both are used to store values or data.
  • cookie stores data in your browser and a session is stored on the server.
  • Session destroys that when browser close and cookie delete when set time expires.