---
title: "What is a cookie?"  
description: "What is a cookie?"  
author: "Ailsa Singh"  
published: 2016-09-26  
updated: 2020-09-14  
canonical: https://www.mindstick.com/interview/23066/what-is-a-cookie  
category: "php"  
tags: ["php"]  
reading_time: 1 minute  

---

# What is a cookie?

A cookie is used to identify a user. A Cookie is a text file that the server embeds on the user’s computer. These cookies are also used for tracking purpose. PHP supports HTTP cookies. These cookies are usually set in HTTP header. With the help of PHP, you can create and delete the cookie.

## Answers

### Answer by Ailsa Singh

A cookie is used to identify a user. A Cookie is a text file that the server embeds on the user’s computer. These cookies are also used for tracking purpose. PHP supports HTTP cookies. These cookies are usually set in HTTP header. With the help of PHP, you can create and delete the cookie.


---

Original Source: https://www.mindstick.com/interview/23066/what-is-a-cookie

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
