ProFtpd will logout the session when TimeoutSession directive is set to some values[in seconds].So by changing that value in the configuration file,you can change the time ftp takes to automatically logout.
More information can be found at:
http://proftpd.linux.co.uk/docs/directives/linked/config_ref_TimeoutSession.html