3

Is it possible to make the session persistent in ASP.Net Core? So far I can only find information about cookie expiration connected to ASP.Net Identity (which I am not using), or session idle timeout (which does not persist after the user closes the browser).

Where do I find options to make the session persistent?

2
  • You want the session to persist after you close down the browser? Commented Apr 12, 2017 at 13:25
  • @LukeTO'Brien, yes, that is the goal. Commented Apr 12, 2017 at 14:31

1 Answer 1

3

ASP.NET Core Session is built on top of IDistributedCache so I guess you are looking for its persistent implementation (Redis, SQL Server etc.). Working with a distributed cache.

Sign up to request clarification or add additional context in comments.

1 Comment

I know this article is very old, but I have a weird problem, I use SQL for my sessions with expires in 365 days in a project with .net 6, the problem is everything is alright on my laptop with chrome and firefox browser, but in my android mobile, sessions lost every few hours, any solution?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.