Artificial intelligent assistant

Azure App Service での Sesston Timeout管理 Azure App ServiceASP.NET Core MVC IISSession TimeoutProcess Recycle Process RecycleSession Timeout1440Process Recycle Azure App ServiceDockerOSWindows

Azure App ServiceSession Timeout

Redis, Cosmos DB, SQL Server

CloudAzure
ASP.NET Core MVCStartup.csConfigureService()


// SQL Server
services.AddDistributedSqlServerCache(options =>
{
options.ConnectionString = Configuration.GetConnectionString("DefaultConnection");
options.SchemaName = "dbo";
options.TableName = "SQLSessions";
});
services.AddSession(options =>
{
options.IdleTimeout = TimeSpan.FromMinutes(60 * 24);
options.Cookie.HttpOnly = true;
options.Cookie.IsEssential = true;
options.Cookie.SecurePolicy = CookieSecurePolicy.Always;
});

xcX3v84RxoQ-4GxG32940ukFUIEgYdPy a42abfe349c5de655b006c914fcbdda2