wordpress sites keep logging out

Sometimes when I'm editing a wordpress site in google chrome it will log me out and the login screen pops up. Can you please tell me what is causing this and how to fix it?

On one of the sites I manage it happens a lot and I have to start work over.