Start a new screen:

$ screen -S screen_name

where screen_name is the name you want to give your screen.

To detach from the screen type Ctrl-A Ctrl-D. Now you can safely log out. When you login again, you can reattach using the following command:

$ screen -x screen_name