Hello.
I've enabled Session in my aspnet core 2.1 app. To do this I followed the documentation, and have added
services.AddDistributedMemoryCache();
services.AddSession(options =>
{
options.IdleTimeout = TimeSpan.FromHours(1);
options.Cookie.HttpOnly = true;
options.Cookie.Name = ".Nuvyta.Session";
});
and
Problem: at every REQUEST, .HttpContext.Session.Id is different and the session storage is reset.
What is wrong? The documentation isn't that complex and doesn't say much more...
p.s.: my colleague just found out that the Session is persisted from the moment that something is actually set into it. Otherwise if it's empty it's reset every time... ok you should at least say this in the docs...
Hello.
I've enabled Session in my aspnet core 2.1 app. To do this I followed the documentation, and have added
and
Problem: at every REQUEST, .HttpContext.Session.Id is different and the session storage is reset.
What is wrong? The documentation isn't that complex and doesn't say much more...
p.s.: my colleague just found out that the Session is persisted from the moment that something is actually set into it. Otherwise if it's empty it's reset every time... ok you should at least say this in the docs...