Session time setting problem 10

Updated on technology 2024-05-23
4 answers
  1. Anonymous users2024-02-11

    Method 2: Configure the session-config parameter in the section.

    The session-timeout element (the element in the file) is used to specify the default session timeout interval, measured in minutes. The element value must be an integer. If the session-timeout element has a value of zero or a negative number, it means that the session will never time out.

    e.g. 30 minutes.

    Method 3: SetMaxInActiveInterval specifies the current session time.

    SetMaxInactiveInterval sets the expiration time of the current session, not the time of the entire web, and is measured in seconds. If you set a value of zero or a negative number, it means that the session will never time out. Commonly used to set the current session time.

    This priority is higher than the priority in method 3.

    Method 4: Save a bean or map in the session, store the corresponding expiration time, and remove it once it expires.

    Method 4 can be scanned by a thread, if the time is over, the thread will be automatically cleared, or it can be judged when it is used, and it can be removed after use, and if the thread is automatically removed, you can use the thread pool of spring.

  2. Anonymous users2024-02-10

    There are four ways to set the expiration date of a session. You can see which place should be set for too short a time, so it expires. 1. Operating system:

    Steps: Get Started - Administrative Tools - Internet Information Services (IIS) Manager - **—— Default - Right-click "Properties" - Home Directory - Configuration - Options - Enable Session State - Session Timeout (set the timeout you want here, in minutes). OK.

    2. Set the expiration time of the session in the application.

    In such web applications, sessions are a common means of storing user state, but since the server memory space is limited, it is necessary to set the session expiration time. How to set the expiration time of the session in is very simple, modify the configuration.

    The following describes how to modify the changes, and the following settings are performed in .

    This means that the session expiration time is 30 minutes. In other words, if the current user does not take action after 30 minutes, the session will automatically expire.

    3. In the CS page of the session, write the following in the load event.

    4、store session in state service

    Take a look at what kind of settings your program uses, and change the time to the time you need.

  3. Anonymous users2024-02-09

    Maybe you set the time of the session.

  4. Anonymous users2024-02-08

    In most cases, we use the default time for session expiration time, but for some cases with special requirements, we can set the session expiration time.

    This can be done in PHP, Settings, found = 1440 (PHP5 defaults to 24 minutes).

    Here you can set the expiration time as you like. But some people say that after setting it, it doesn't seem to work!

    Actually, it's not that it doesn't work, but because the system defaults:

    garbage collection has a probability, 1 1000 is a session 1000 times before it is **.

    As long as you have a large number of visits, you can achieve the best effect.

    Or you can set the value of , such as = 1, so that you can clearly see the effect of session expiration.

    The most common one we use is set in a PHP program, as shown in the following example:

    if(!isset($_session['last_access'])|time()-session['last_access'])>60)

    session['last_access'] = time();

    That's it, and if you want to set it to expired, you can also do it in the program:

    unset($_session['last_access']);or $session['last_access']='';

Related questions
8 answers2024-05-23

It depends on what major you are, since last year, English has been divided into two types of test papers, how to divide it into the enrollment brochure of the year under the major, it will be clearly marked that the difficulty of the test paper in English (1) is close to the level of professional level 8, and the difficulty of English (2) is equivalent to the level of English level 6. In general, you can get a total score of 40 in English 1, and you can score about 60 in Paper 2. Since you're already studying, I don't think it's a problem with your graduation certificate, because many people take the graduate exam in the first half of their senior year, and they enter graduate school in September after graduation. >>>More

3 answers2024-05-23

clock datetime hh:mm:ss yyyy-mm-dd

display clock can be seen, and whether the time zone is actually set or not has little impact. >>>More

6 answers2024-05-23

Open Notepad Enter ** below and save as a file with the suffix bat or cmd Named shut down ** for @echo off shut down -s -t 60 This command indicates automatic shutdown after 60 seconds Enter controlschedtasks in Run Start the task scheduling wizard Click Browse Select the shutdown created above Set the frequency of the task to Daily Start time when you want to shut down Finally, enter the user password OK and you're good to go!

19 answers2024-05-23

If you change the rom and the problem is gone, of course it's good. >>>More

10 answers2024-05-23

Mine is also a Hong Kong bank, which is worse than you. I timed 8:30 and the battery was 100%, and by 11:00, I took a look at ** and there was 92% left. And I'm wifi cellular all off. The power of 4s is really unbearable!!