config.inc.php > $cfg['LoginCookieValidity'] = 3600 * 9; // 9 hours
edit from the link posted by ajreal: LoginCookieValidity
for the second question , after changing upload_max_filesize in php.ini did you restart apache ( or whatever webserver you use ) ?