Recommended: ASP implements a single row, multiple column display method example program I finally wrote something, but because the mouse is too sensitive, I was accidentally locked up before submitting the web page. Depressed. Write it simpler. Asp The commonly used method for displaying multiple columns in a row is to use two loop statements to control the number of columns and total records in the table. Today I thought of using div to control it
Specifically, the cookie mechanism adopts a solution to maintain state on the client side. It is a storage mechanism for the session state of the user side, and it requires the user to open the client's cookie support. The role of cookies is to solve the stateless defects of the HTTP protocol.
The session mechanism adopts a solution to keep state between the client and the server. At the same time, we also see that since the server-side maintaining state scheme also needs to save an identity on the client, the session mechanism may need to use the cookie mechanism to achieve the purpose of saving the identity. The session provides a convenient way to manage global variables.
The session is for each user. The value of the variable is stored on the server. A sessionID is used to distinguish which user session variable is. This value is returned to the server when accessed through the user's browser. When the customer disables the cookie, this The value may also be set to be returned to the server by get.
In terms of security: When you visit a site that uses session and create a cookie on your own machine, it is recommended that the SESSION mechanism on the server side is safer because it will not arbitrarily read the information stored by the customer.
Orthodox cookie distribution is achieved by extending the HTTP protocol. The server adds a special line of instructions to the HTTP response header to prompt the browser to generate corresponding cookies according to the instructions. From a web server perspective, all HTTP requests are independent of previous requests. That is to say, each HTTP response depends entirely on the information state management mechanism contained in the corresponding request. Overcome some restrictions of HTTP and allows the network client and server to maintain the relationship between the request. During the period when this relationship is maintained, it is called a session.
Cookies are small pieces of text stored by the server on the local machine and sent to the same server with each request. IETF RFC 2965 HTTP State Management Mechanism is a universal cookie specification. The web server uses HTTP header to send cookies to the client. On the client terminal, the browser parses these cookies and saves them as a local file, which will automatically bind any requests from the same server to these cookies.
Share: ASP tutorial: Use ASP to generate image color verification codes Use ASP to generate 49 lines of color verification code for image, three files Asp files: Code.Asp Data files: body.Fix, Head.Fix Usage: <img src=code.asp>