What is difference between session and cookie in PHP ?

Member

by zella , in category: Technology , a year ago

What is difference between session and cookie in PHP ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by irwin , a year 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.