In my local development Ubuntu box I use MySQL and phpmyadmin to work with the database.
Whenever phpmyadmin is idle for 1440 secs (24min) the session expires. I lose m
Go to PHPMyAdmin in your browser
Settings > Features > Change the value of Login cookie validity > Save
NOTE: You will have to do this per session.