Locate your phpmyadmin installation folder. Then open config.inc.php file and enter this line:
$cfg['LoginCookieValidity'] = 3600 * 3;
This line of code extends your phpmyadmin session for 3 hours.
Make sure your config.inc.php file is writable, to do this change. Then you can make it unwritable again.