What is difference between session and cookie in PHP ?

Member

zella

by zella , in category: Technology , a month ago

What is difference between session and cookie in PHP ?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

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