Why Could My App Be Losing Access to The Database A While After Users Log In?

So my app is PHP/MySQL based… all works well except that some time after a user logs in, typically measured in hours, the connection to the database is lost.

Can anyone give me some ideas as to why this can happen?

Very difficult to pin down Antony. So many factors from user device and software settings/preferences to front or back end settings…

What is your experience of the issue? Have you had the same problem?

Are the majority of users OK and just one or two with the issue? Not worth breaking it for the majority to please the minority, if the other way around then there is an issue obviously…