Cisco Support Community
Showing results for 
Search instead for 
Did you mean: 
New Member

Session timeout not working

Hey gang-

I'm Hyperterminal-ing in to my 2811 router via the console port and the router keeps logging me off and dumping me out to user mode after a few minutes of inactivity. I'd like it to leave me in for an hour or more before doing so; I'm studying and it's a pain to have to keep re-logging in. I've tried the "session-timeout" parameter in Line Con 0 mode; it seems to have no effect. Any idea what the right command is?

Thanks much-

Dave S.

Hall of Fame Super Silver

Re: Session timeout not working


If you want to stay logged in for 1 hour then this is what you need:

line con 0

exec-timeout 60

exec-timeout is an inactivity timer and is very different from the session timer (as you have discovered).



New Member

Re: Session timeout not working

Ah, thank you so much! I'll have to do yet more research and figure out the difference.

thanks again-

Re: Session timeout not working

exec-timeout is indeed the one you need, but setting it to long values can be a security risk if you forget to log out and just disconnect.

Setting to an hour means that if you don't logout and you have been in enable mode, there is a window of an hour from the last thing you type where someone can connect and have full access to the config of the router.

That means they can compromise the passwords, potentially for the whole network.

While I understand that it is inconvenient, and it may just be a lab network but it is a bad habit to get into, as it can easily find its way into your personal script that you add to every device when you first start to configure it - you know the one - setting password encryption, timestamping and no ip domain-lookup...


CreatePlease to create content