I want to develop an idea using cookies on the server side but I am afraid that I should not rely on cookies behavior as the following references say that cookies are client-side and browser-based objects:
HTTP cookies provide the server with a mechanism to store and retrieve state information on the client application's system.
An HTTP cookie (also called web cookie, Internet cookie, browser cookie, or simply cookie) is a small piece of data sent from a website and stored on the user's computer by the user's web browser while the user is browsing
A cookie is often used to identify a user. A cookie is a small file that the server embeds on the user's computer
An HTTP cookie (web cookie, browser cookie) is a small piece of data that a server sends to the user's web browser. The browser may store it and send it back with the next request to the same server.
However, On the server side, I tested that changing the value of cookies works fine without the role of the browser. I want to make sure that kind of using cookies is a standard way so I rely on it to generate some temporary data I asked in this question before.
<%
Response.Cookies("a")="test <br>"
response.write request.cookies("a")
Response.Cookies("a")="test1 <br>"
response.write request.cookies("a")
Response.Cookies("a")="test2 <br>"
response.write request.cookies("a")
Response.Cookies("a").Expires = DateAdd("d",-1,Now())
%>
result:
test
test1
test2
And there are no cookies with name "a" in headers of the page and no object is created on the visitor browser. It seems that the cookie was created and killed on the server and the browser knows nothing about it!
My question is that if the definitions of top mentioned references are wrong? Do they miss some details about the server side characteristics of cookies? What are the problems if I use cookies as temporary variables on the server side?