---
title: "What is cookie management in c#?"  
description: "What is cookie management in c#?"  
author: "Ravi Vishwakarma"  
published: 2021-07-05  
canonical: https://answers.mindstick.com/qa/93691/what-is-cookie-management-in-c-sharp  
category: "programming"  
tags: [".net programming", "c#", "web application development", "web development", "web programming"]  
reading_time: 1 minute  

---

# What is cookie management in c#?

What is the need for [cookie](https://www.mindstick.com/forum/2312/how-to-create-endless-cookie) [management](https://www.mindstick.com/articles/23350/how-to-choose-a-project-management-platform-for-your-business) in c# and what are the types of cookie management?

## Answers

### Answer by Shivam Prajapati

Cookies are the small piece of code which are stored in the user machine for early access in the whole pages. It is used to store the preference information of the user like Username, Password, City and Phone no etc on client browser. Types of Cookies : There are two types of cookies : 1.) Persist Cookies - A cookie which are not going to have expired time are known as Persist Cookies. 2.) Non-persist Cookies - Whereas, Cookies which have the expiration time is known as Non-persist Cookies. Advantages of Cookie 1.) Cookies are in readable form so that anyone can read it easily. 2.) It can store user information on the client machine to easy access. 4.) They are Fast accessing. Disadvantages of Cookie 1.) If user clear cookie information they are not able to rollback. 2.) Because of in easy readable form, it is not good for a security reason.


---

Original Source: https://answers.mindstick.com/qa/93691/what-is-cookie-management-in-c-sharp

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
