Logging out - i normally use ctrl-D you can also type
Logging in - You will be returned to a login prompt when logging out so you only need enter user/pass again
You can try it by using the virtual terminals
when you want to return to the one running X do