How the server maintains the session

Updated on technology 2024-02-21
10 answers
  1. Anonymous users2024-02-06

    After the server creates a session, it will write back the session ID number to the client in the form of a cookie, so that as long as the client's browser is not closed, when accessing the server again, it will go with the session ID number, and the server will use the corresponding session in memory to serve it.

  2. Anonymous users2024-02-05

    I used this. Follow-up:

    page import=""%>listsideburn l=new arraylist();

    if("s1")=null)

    sl",l);"u","Tourists");

    for(int i=0;i I wrote this way to determine if the previous session was empty and clear it if it was empty: Yes. That's pretty much the way it goes, though.

    You don't have to determine if a session is empty. Because the session is in the collection. Then it must not be empty.

    Follow-up: @page import=""%>listl = new arraylist();

    if ("sl") null)

    sl", l);else "u"Tourists");boolean x = false;

    for (int i = 0; i < i++)for (int i = 0; i < i++)if (x ==false) {

  3. Anonymous users2024-02-04

    Distributed caching session

    Take memcache as an example.

    The author uses the memcached-session-manager of the limb surface under Google Code to implement the session caching in a distributed environment, and the performance is not bad after the author's test. Of course, readers can follow similar lines of thought to make their own decisions.

    The author uses kryo to do object serialization.

    The following needs to be introduced.

    lib is introduced below.

    contexttag

    MemcachedNodes represent memcache nodes, and multiple middle spaces need to be separated (for example: 11211 :11211).

  4. Anonymous users2024-02-03

    Doesn't iOS have a local cache.

  5. Anonymous users2024-02-02

    Even if you close the browser, the session is often referred to as the session, but the server's session still exists, the browser's session, because the browser is closed, the browser will empty the session, that is, the server has a session, but the browser does not, and when the time server arrives, it will be automatically released.

  6. Anonymous users2024-02-01

    The size of the session should have nothing to do with what server it is, it should only have to do with the specific implementation class of the session and what values are stored in the session, generally speaking, the value of a session can be negligible, but the size of the session should be reduced as much as possible, because the number of sessions on the server is very large, even if the size of the session is just a grain of sand, but its number may bury people.

  7. Anonymous users2024-01-31

    Are you sure the program is okay? 2003 has an application pool that automatically ** resources if the resource usage is exceeded, and then the session is lost.

  8. Anonymous users2024-01-30

    It is recommended that the server use less session to increase the burden on the server!

  9. Anonymous users2024-01-29

    Set the session timeout period (default is 20 minutes)4Open the corresponding application pool property on the application pool and change the number of webs to 1 Restart IIS

    5.Nest a frame page iframe inside the home page and set the width and height to 0in the loading page inside.

    This sentence is added to it to mean that a request is sent to the server every 18 minutes.

    Just before the session expires. This way the session never expires.

  10. Anonymous users2024-01-28

    It's the cookies that are the main problem.

Related questions
5 answers2024-02-21

In recent years, with the country's increasing efforts to record the record, as well as the crackdown on other relevant departments, the rise of U.S. VPS, more and more people know the benefits of U.S. VPS, and they have begun to try to use U.S. VPS. The first major benefit of the US VPS is that it does not require an ICP filing and is ready to use. Secondly, many customers think that the United States is a free country, and anyone can live in the United States, so the American space can be placed no matter what content. >>>More

7 answers2024-02-21

It's not difficult, the hardware uses a router, the software, and the operating system uses win2003 >>>More

12 answers2024-02-21

Server this thing,As long as you can provide services, whether you are DIY equipment or professional server equipment, it can be a server,Whether you are an ordinary PC or a PC server,Blade server,Small computer are the same,It's just that the assembled PC is configured to provide services,This is called a DIY server,The server is divided into high, medium and low-end,These servers are specially manufactured by equipment manufacturers to provide services for use,Configuration,Performance,Stability, etc.,There must be a difference with DIY ( The specific difference can be known according to the configuration of accessories and stress tests), this is the hardware level, the software level depends on your technical capabilities and needs to deploy different systems, different applications to achieve your needs.

16 answers2024-02-21

Host Detective Come Here:

Generally speaking, the servers are maintained by special personnel, which you don't need to worry about, you can learn about the advantages of European servers: >>>More

4 answers2024-02-21

Let's talk about the configuration first, the configuration is no problem, but there is no way to put the computer room, and the PC hosting ** should be very high. >>>More