ASP.NET, Session does not require cookies.

xiaoxiao2021-03-06  37

Guide: ASP.NET, session does not require cookies to work. This article introduces its mechanism and understands this principle and has a great help to the use of sessions.

-------------------------------------------------- ----------------------------- / * Tofu production is a boutique http://www.asp888.net tofu technology station Reprinted, please keep the copyright information * / session management, our traditional ASP program is actually a DEAD session connection, the system is actually written in our client, when we set the cookie in our browser security settings When you have a prompt, when we accesses a page with the session, you will have a prompt to allow cookies. When the settings are not allowed, our sess is always unsuccessful. For example: <% session (" ") =" Tofu "Session (" URL ") =" http://www.asp888.net ";%> In the ASP.NET environment, session is completely redefined, due to tofu now ASP The .NET environment is a PDC version, so there is no Demo to the beta1 version. If I am here involved in beta1, it is just the introduction of the material. I have not been touted. In fact, for some unwillingness Comrades, tofu said: Actually, the use of ASP.NET is identical, even more simple, because we don't have to continue consider the status of the client's cookie option, because of the client's How to set up, SESSION can smoothly pass the SESSION mechanism of ASP.NET, which is simple to understand, limited to technology, I have some questions are not very clear, so I welcome everyone to explore this article in the PDC version. We open% systemroot% / complus / (version) /config.web file, we find sessionState to see the previous content: When INPROC is TRUE, ASP.NET will take a kind of in-processs Mechanism, save the session's data on this server, if INPROC and USESQLSERVER are FALSE, take an Out Process mechanism, and store the session on a server that is specifically used to save the session, so you can Solve when accessing a site of different hosts, the session sharing, this previous ASP is absolutely impossible. CONFIG.WEB changes much on the beta1 version, we simply look at:

转载请注明原文地址:https://www.9cbs.com/read-52760.html

New Post(0)