A problem with the use of Session in C

Updated on technology 2024-05-21
6 answers
  1. Anonymous users2024-02-11

    dataset ds = new dataset();A dataset.

    sqlconnection con=new sqlconnection("server=.;database=database name; uid=sa;pwd=sa");

    sqldataadapter sda = new sqldataadapter();Adapter.

    new sqlcommand();

    con;con data data connection.

    sql;SQL is a query statement.

    session["userid"]=;

    DS is the dataset

    This means that the data in the first column of the first row of the first table in DS can also be of the object type.

  2. Anonymous users2024-02-10

    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

    The default is 30 minutes and can be configured by yourself.

  4. Anonymous users2024-02-08

    Set it in the configuration file, ** as follows: The default session is 20 minutes, of course you can set it yourself.

  5. Anonymous users2024-02-07

    timeout="The number of minutes you set";The default is 20 minutes.

  6. Anonymous users2024-02-06

    To give you a reference, there is one.

Related questions
7 answers2024-05-21

clrscr is a standard library function for C, not a standard library function for C++. >>>More

8 answers2024-05-21

The overall idea is to set both the A and B forms as global variables, so that they can access each other. >>>More

8 answers2024-05-21

The semicolon is the sign of the end of the statement, but the semicolon is not used after the loop, if, and subfunctions such as long long a (int b), and everything else is used, but two semicolons cannot be added, although it will not cause an error, but it may affect the result.

17 answers2024-05-21

process myprocess = new process();define a thread instance; >>>More

25 answers2024-05-21

For example, I have two lists, one is the data of the string type, and the other is the data of the integer type, and when the data is not used, you need to force the data to be converted, in case you are careless, the list of the string type is forcibly converted to the integer type, isn't it wrong? The generics will let the compiler check for you, and if you want to put string data into a generic collection of the village integer type, the compiler will report an error. This way, there will be no problem of forced conversions causing errors. >>>More