You can lock the session by pressing Ctrl+Shift+L or by clicking the Lock Screen option on the dropdown menu under the user name.
To unlock the session you must enter the password.