shailendra
shailendra

Reputation: 205

ASP.NET session out problem. frequently logout problems

I have created a ASP.NET MVC razor application with authentication. I used a custom implementation of AuthorizeAttribute.

When I run it locally, it works fine, but when I upload and run it from the website then it frequently logs out while working without leaving website idle.

How can I solve it?

Upvotes: 0

Views: 966

Answers (1)

felickz
felickz

Reputation: 4461

If the asp.net session is stored in memory and you recycle the app domain, you will loose all sessions in memory. If you control the web server, you might research into any reason for recycles: see. If you want your sessions to persist across these events you will need to look into other session state modes

Upvotes: 1

Related Questions