I have tried everything I found on StackOverflow but I still cannot manage for Session (contents) to be expired automatically.
I've tried:
I do not access Session data (set,get) on ajax calls, so this cannot increase session expiration automatically.
It was so easy/trivially in old AspNet MVC - worked as expected immediately.
And all I do I store custom login (data) into Session and expect Session to drop after, say 20 minutes of user's inactivity. But this never happens.
Any ideas?
EDIT: Cookies
lb_commonator=ffffffff0972280045525d5f4f58455e445a4a423660; crowd.token_key=7qN9z4UYR3tCjYdronwmOw00; .AspNetCore.Antiforgery.tYkxYH7Bg6I=CfDJ8OahW8JbNMdPv78xOmnUC6BtivuFvWy4RhYaN0oRtiUvkLpVtHLxgQaQOS1RTNqT8E0LaobeaNdLIhhoy4z4qSJleqiK2QJTWEptEDFAITNCTdh03AIqcd0mBL0FZeFcr5GalTfqiNahST7eUL7Wnpg; .AspNetCore.Session=CfDJ8OahW8JbNMdPv78xOmnUC6Cwi2HZVPs93%2Bohf8c%2BvQ1hWZVHeu54cwkg8PND41KXN1F%2BeAOSnTnkiT3RAGb3mPQjLRMpcq1x9f5KFrgegRRoEDHx%2FgEknhSOo8yCfKp1srlrzTWUtpUF8tsFKn1JwPLI9fHT77SGscSkTMrsueYr
EDIT 2 (IdleTimeout and ExpireTimeSpan have no effect at all):
// Add session
// Add session
// Add session
services.AddSession();
// TESTING: TODO:
// TESTING: TODO:
// TESTING: TODO:
//services.AddSession(options =>
//{
// options.IdleTimeout = TimeSpan.FromSeconds(10);
//});
//services.ConfigureApplicationCookie(options =>
// {
// options.SlidingExpiration = true;
// options.ExpireTimeSpan = TimeSpan.FromSeconds(10);
// });
EDIT 3: