Sometimes we need to have a longer bash session timeout value to be able to stay logged-in while nothing is happening on the terminal. Here is the setting you can include in your .bashrc or .profile files:
export TMOUT=0
This will set the shell session to have no timeout duration.
export TMOUT=345600
This will set the timeout duration to four days (345600 seconds).