my .net core appliaction losses its session after payment success redirection. I have provided a return path while payment registration and the app must redirect to it after payment but its show login page by session out.
can anyone help on this
This is my cookiepolicyoption in Startup.cs
- services.Configure<CookiePolicyOptions>(options => {
-
- options.CheckConsentNeeded = context => false;
- options.MinimumSameSitePolicy = SameSiteMode.None;
- });
This is the session configuration :-
- services.AddSession(options => {
- options.IdleTimeout = TimeSpan.FromMinutes(30);
- options.Cookie.HttpOnly = true;
- options.Cookie.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.Strict;
- });