What is different between Request.Cookie and Response.Cookie

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ad

    What is different between Request.Cookie and Response.Cookie

    What is different between Request.Cookie and Response.Cookie ?
    Are they independent?


  • Karl Seguin [MVP]

    #2
    Re: What is different between Request.Cookie and Response.Cookie

    Request.Cookie is used to get the cookies sent from the browser.
    Response.Cookie is used to store new cookies onto the browser. Follows the
    same paradism as all other Request/Response things. request gets informaiton
    about the http request, response is used to out put in response to the
    request.

    Karl

    --
    Programming blog exploring Zig, Elixir, Go, Testing, Design and Performance




    "ad" <flying@wfes.tc c.edu.tw> wrote in message
    news:es5SgyzIGH A.3176@TK2MSFTN GP12.phx.gbl...[color=blue]
    > What is different between Request.Cookie and Response.Cookie ?
    > Are they independent?
    >[/color]


    Comment

    • Kevin Spencer

      #3
      Re: What is different between Request.Cookie and Response.Cookie

      The difference is the difference between Request and Response. When any HTML
      document is requested by a browser client, the headers sent from the client
      contain all cookies for the domain of the HTML document, so that the server
      can read them. When the Response is sent back to the client, the cookies are
      included in the Response. The client then updates its cookies from the
      Cookie Collection sent with the Response.

      --
      HTH,

      Kevin Spencer
      Microsoft MVP
      ..Net Developer
      Who is Mighty Abbott?
      A twin turret scalawag.

      "ad" <flying@wfes.tc c.edu.tw> wrote in message
      news:es5SgyzIGH A.3176@TK2MSFTN GP12.phx.gbl...[color=blue]
      > What is different between Request.Cookie and Response.Cookie ?
      > Are they independent?
      >[/color]


      Comment

      Working...