A user logged into a device through a console expects the session to be logged out when disconnecting from the console. Although this doesn't happen by default on Junos devices, the console can be secured by using the Junos log-out-on-disconnect feature.
When disconnecting the console cable from a Juniper router or switch, the user account is not automatically logged out and the console session is still found to be functioning. After removing the physical cable from EX Switch console port the user session remains logged in. Example, the user is still logged in after removing the console connection:
root# run show system users 7:19AM up 37 mins, 2 users, load averages: 0.31, 0.03, 0.05 USER TTY FROM LOGIN@ IDLE WHAT root u0 - 7:19AM - cli ===> Represents console session root p0 10.130.38.125 7:19AM - cli ===> Represents ssh session
system { ports { console log-out-on-disconnect; } }
root# run show system users 7:20AM up 38 mins, 2 users, load averages: 0.31, 0.03, 0.05 USER TTY FROM LOGIN@ IDLE WHAT root p0 10.130.38.125 7:2
0AM - cli ===> Represents ssh session
log-out-on-disconnect