In this scenario ,It may not advised to open the terminal for a day long .
This can be avoided in following way.
Following command when executed on terminal result a session to log off in case of 5 minutes of inactive session.
this can be included in /etc/profile file to implement it against every user. However this can be override if users profile file has some other values in it.
This can be avoided by putting readonly TMOUT=300 in /etc/profile file.
not tested for shells other than Bash or Korn.
Please refer following thread for more information.