Session Timeout

I want to increase the Session Timeout, How can i do that in simple words!

You can try the code from here: Login Session Issue - #2 by korchev

I'm unable to Define ConfigureApplicationCookie..

Please Check Screenshot!

builder.Services.ConfigureApplicationCookie(options =>
{
options.ExpireTimeSpan = TimeSpan.FromSeconds(30);
options.SlidingExpiration = false;
});

You are probably missing some namespace import.

I have tried same Code in Startup.cs File under
public void ConfigureServices(IServiceCollection services),
But User Logout after 30 minutes...

I have Set Time for 3 Days

seems like the code is ineffective in Startup.cs File

Please Guide me Which NameSpace import is missing, I Almost Tried all The NameSpace, But Unable to Resolve this

Please don't use our forum instead of google. The namespace is one search away.