سلام
من با asp.net core به وب سرویس لاراول وصل شدم ولی هر 10-20 دقیقه کاربران رو مجبور به لاگین میکنه لطف کنید بهم کمک کنید.
services.AddAuthentication(CookieAuthenticationDefaults.AuthenticationScheme)
.AddCookie(options =>
{
options.LoginPath = "/Account/Login";
options.LogoutPath = "/Account/Logout";
options.Cookie.Name = "WcAuth.cookie";
options.ExpireTimeSpan = TimeSpan.FromDays(5);
});
var properties = new AuthenticationProperties
{
IsPersistent = model.IsPersistent,
AllowRefresh = true
};
سلام
در سرور Machin Key ست کنید درست میشه
سرچ کنید set machin key asp.nmet core
سپاسگزارم
machine key هم باید در iis تعریف بشه و هم در پروژه؟