I am developing classified ads application in ASP.NET MVC3 using Entity Framework 4.3 for database.
I am facing problem when user session is active and execute any database query by entity framework then application session time's out unexpectedly.
Note that the query gets execute successfully and I can see my results as well but after a little while asp.net session terminates.
This only happen when I host my application to the live server (Arvixe). On my Local IIS it is working fine.
If I use any other source for database query then it is working fine.
I have also reset session time-out in web.config.
I am using MYSQL.
Any thoughts?
try setting values for
wait_timeout&interactive_timeoutin MySQL configuration filemy.cnfas:then restart MySQL server.