Advanced Settings

SessionLimit 2.0

SessionLimit 2.0 settings are grouped under different categories. General settings related to SessionLimit 2.0 are located under General Settings. However, there are some settings that cannot be made from the interface. Below are the settings made from local files.

The following settings can be edited in the appsettings.json file in the SessionLimit 2.0 installation directory.

Since the following settings are changed in the appsettings.json file, IIS must be restarted after the changes are made. Otherwise, the settings will not become valid and it will continue to work with the old settings.

AccessTokenExpiration

Determines the session duration of the user logging in to the web portal. It is in minutes and defaults to 60 minutes. Shortening the time will make usage more difficult and increase safety. If the period is extended, it will reduce the need to log in during the day. However, in this case, an accidentally forgotten session will remain open during this period.

Token duration can be between 10 and 43200 minutes (30 days). If durations other than these are used, the default value of 60 minutes is used.

Verbose Logging

The VerboseLog parameter can be used to collect detailed logs. The value of this parameter can take the values ​​of true and false. If the value is set to true, all agent and server activities are written in detail to the t_TempRequests table in the database. This should only be used for problem detection. Long-term use may cause the database to fill up, slow down, and SessionLimit to stop functioning. Default value is false.

ConnectionStrings\SessionLimitDB

SessionLimit 2.0 uses the database in SQL Server. The connection string to this server is defined in this field. The information entered in this field is automatically encrypted after IIS runs.

SQL Server with default instance and with SQL Authentication

Copy

"Data Source=SERVERNAME; Initial Catalog=SessionLimit; user Id=UserName;password=Password; pooling=true; TrustServerCertificate=True;"

SQL Server with an instance and with SQL Authentication

Copy

"Data Source=SERVERNAME\Instance; Initial Catalog=SessionLimit; user Id=UserName;password=Password; pooling=true; TrustServerCertificate=True;"

SQL Server with default instance and with Integrated Authentication

Copy

"Data Source=SERVERNAME; Initial Catalog=SessionLimit; Trusted_Connection=True; pooling=true; TrustServerCertificate=True;"

SQL Server with an instance and with Integrated Authentication

Copy

"Data Source=SERVERNAME\Instance; Initial Catalog=SessionLimit; Trusted_Connection=True;
appsettings.json
{
  "ConnectionStrings": {
    "DbConnectionString": "The encrypted string of the connection string to the SessionLimit database appears in this field."
    },
  "Logging": {
    "LogLevel": {
      "Default": "Information",
      "Microsoft.AspNetCore": "Warning"
    }
  },
  "AllowedHosts": "*",
  "Localization": {
    "DefaultLanguage": "tr-TR",
    "DefaultLanguagesPath": "Localization\\Languages\\"
  },
  "LogValue": { 
    "VerboseLog": false
  },
  "TokenOptions": {
    "AccessTokenExpiration": 60
  }
}

Last updated