Тёмный

Login and Logout with Session. Asp.net Core MVC .net6. Vs2022 

Metehan Akgül
Подписаться 537
Просмотров 10 тыс.
50% 1

Опубликовано:

 

23 окт 2024

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 9   
@anlonay4143
@anlonay4143 Год назад
Anaa bu kadar mıymış session eline koluna sağlık kral Entity Framework ve Identity kütüphanesini anlatanlar hiç değinmiyor maalesef
@0semih
@0semih Год назад
kaç gündür şunu arıyorum allah razı olsun çok ama çok teşekkürler
@metehanakgul9204
@metehanakgul9204 Год назад
Önemli değil 👍
@hoangheo2505
@hoangheo2505 Год назад
thanks you so much ^^
@hatchhenghorn
@hatchhenghorn Год назад
how to set a session for 1 day?
@metehanakgul9204
@metehanakgul9204 Год назад
Use IdleTimeout methods in Program.cs. For example 10 seconds..: builder.Services.AddSession(options => { options.IdleTimeout = TimeSpan.FromSeconds(10); options.Cookie.HttpOnly = true; options.Cookie.IsEssential = true; });
@hatchhenghorn
@hatchhenghorn Год назад
@@metehanakgul9204 I wanna set the session for 1 day will be auto timeout?
@adloukondo2148
@adloukondo2148 Год назад
@@hatchhenghorn builder.Services.AddSession(options => { options.IdleTimeout = TimeSpan.FromDays(1); options.Cookie.HttpOnly = true; options.Cookie.IsEssential = true; });
@hatchhenghorn
@hatchhenghorn Год назад
Why is it still 20 minute timeout?@@adloukondo2148
Далее
Implementing JWT Authentication in ASP.NET Core
23:51
Brutally honest advice for new .NET Web Developers
7:19