C
C#13mo ago
Trollicus

❔ asp.net core sessions data set lost on refresh

guys i have a big problem which i've been trying to solve for the past few days, so i'm using ASP.NET Core with Razor pages (.cshtml) right and I use Sessions I've set up everything perfectly middleware and so on, but the issue is that i set like "_isLogged" and "_Name" when a successful login ( i'm using mysql btw ) and it'll redirect to the dashboard right and both have checks of the sessio nif its empty or null and will let you in the dashboard if islogged or name are set; but the issue is that when i refresh/reload the page it redirects me to the login which means the session data set is gone i posted it on stackoverflow just to see if i did something wrong https://stackoverflow.com/questions/77441055/asp-net-core-net-7-storing-sessions
Stack Overflow
ASP.NET Core (.NET 7) Storing Sessions
so i have a basic ASP.NET Core Web App with Razor pages (.cshtml) and I've setup a basic Session like so: builder.Services.AddSession(options => { options.Cookie.Name = ".SuperMemory.Se...
2 Replies
Angius
Angius13mo ago
So... you're doing auth manually, not using Identity?
Accord
Accord13mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.
Want results from more Discord servers?
Add your server