Configuring automatic logout for both local and remote users