I am using ASP.NET identity membership. This is the Startup.Auth.cs code:
app.CreatePerOwinContext(EFDbContext.Create);
app.CreatePerOwinContext<
The reason for users logging off is because of error in validation of forms-authentication data and view-state data. It could happen for different reasons including using web farm in hosting services.You should check in your project webconfig. Check here for details about that. If you don't havein your webconfig, try adding this piece of code after in your webconfig:
The other option is using generated ASP.NET Machine Key inside webconfig. There are some online tools which my recommended ones are this and this.