Ameerudheen K

Ameerudheen K

  • NA
  • 46
  • 2.1k

.net core application session lost

May 5 2020 3:36 AM
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
  1. services.Configure<CookiePolicyOptions>(options => {  
  2. // This lambda determines whether user consent for non-essential cookies is needed for a given request.  
  3. options.CheckConsentNeeded = context => false;  
  4. options.MinimumSameSitePolicy = SameSiteMode.None;  
  5. });  
This is the session configuration :-
  1. services.AddSession(options => {  
  2.       options.IdleTimeout = TimeSpan.FromMinutes(30);   
  3.       options.Cookie.HttpOnly = true;   
  4.       options.Cookie.SameSite = Microsoft.AspNetCore.Http.SameSiteMode.Strict;  
  5. });

Answers (1)