What is a cookie?

Sharad Jaiswal
Sharad Jaiswal

Posted On: Feb 22, 2018

 

A cookie is a piece of information that gets stored on the client side. It can either be temporary or permanent. A temporary or session cookie is valid only for one session. While a permanent cookie is valid for many sessions. There is also a default timeout for a cookie which is 30 minutes.

One can also turn off cookies on a page in a website. This is done using the Cookie Discard property. The discard flag is determined by the server using get or set options. So when this property is set to true, the Cookie does not get saved to the hard disk of the user at the end of one session.

    Related Questions

    Please Login or Register to leave a response.

    Related Questions

    ASP.NET Interview Questions

    What is ASP according to you?

    ASP is Active Server Pages is a useful tool by Microsoft to create user friendly web pages...

    ASP.NET Interview Questions

    What are the main advantages of using ASP.NET?

    ASP.NET is highly beneficial over ASP. It is the next level of the ASP framework. The advantages of ASP.NET are given here...

    ASP.NET Interview Questions

    What are validators and list some validators of ASP.NET?

    Validation in ASP.NET is an important thing as it is helpful in saving storage space...