public void ConfigureServices(IServiceCollection services)
{
services.AddSession(options =>
{
options.IdleTimeout = TimeSpan.FromMinutes(60);
}
);
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.AddControllersWithViews();
}
相关文章
- 02-13前后端分离编写简单注册登录案例,并实现session存储持久化
- 02-13查询session内容
- 02-13(HY000): Cannot modify @@session.sql_log_bin inside a transaction
- 02-13securtcrt session配置转xshell的session配置
- 02-13Session["userName"]与Session["userName"].ToString()是不一样的~~
- 02-13NX二次开发-UFUN修改当前导出CGM文件选项设置UF_CGM_set_session_export_options
- 02-13NX二次开发-UFUN获取当前导出CGM选项设置UF_CGM_ask_session_export_options
- 02-13NetCore+AutoMapper多个对象映射到一个Dto对象
- 02-13Unable to compile class for JSP: Duplicate local variable session
- 02-13FreeMarker的原理&基本指令&session