# Chapter 7. Logging out

We sincerely hope that using the KDE gives you so much fun and pleasure that you never want to log out. But if you do, simply click the small X-like button on the panel, just above the padlock button.

# 7.1. Session Management

When you log out, KDE remembers which applications you had open, as well as where all the windows were located, so that it can open them for you the next time you log in. This feature is termed Session Management. KDE-aware applications will restore themselves to the state they were in when you logged out: for example, kedit remembers which file you were editing. Non-KDE applications do not memorize their state on logout, and KDE will warn you to make sure that you have saved any important data in them when you start to log out.

To illustrate session management, choose application starter > Applications > Editor to start KEdit. Open a text document to edit. Now log out and back in. You will observe that KEdit will be restored to the exact same position on the screen, including the right virtual desktop and the document we left open in KEdit before we logged out is opened again automatically. KEdit will even remember whether you had unsaved changes to your document before you logged out and will save them to the file you were working on if you choose 'Save' from the 'File menu'.