Home TechnologyInternet Subscribe to RSS

When Do I Use Cookies In Asp.net?

Answer Question

2 Answers - Sort by: Date | Rating

    A cookie is a little text file which the browser creates and is stored on the client's machine by the web browser software. Cookie is one or more pieces of information stored in the form of text strings. The web server sends you a cookie and the browser stores it. A cookie commonly serves to store information about the user and the preferences or choices the user makes.

    Making cookies with ASP.NET is a simple process. The System.Web supplies a class called HttpCookie to create cookies. Here is the basic code for writing a cooking in ASP.net using System.Web
    Response.Cookies"BackgroundColor"].Value = "Red"
    To read the cookie back, the code is:
    (Request.Cookies["BackgroundColor"].Value)

    Websites which are recommended for knowing how exactly cookies are added in Asp.net are
    www.startvbdotnet.com
    www.codetoad.com
    0 0

    Starwin  

    answered 3 years ago

      If you want to get your data from your system then you need to go for cookies
      0 0
      Guest

      Guest  

      answered 6 months ago

        More

        More

           
           

          Ask a Question via Twitter

          Send a question to @askblurtit and we will publish it online and send you a reply everytime you receive an answer.

          Blurtit Store

          Get T-shirts, hoodies, caps and more at the Blurtit store

          Blurtit International