KDE and its applications support sessions. This feature allows the system to save the state of all applications that are in use when the user logs out of the desktop environment, and to restore them when the user logs back in.
Open System Settings and click on Session Manager in the Advanced tab to control how KDE manages sessions. For example, to tell KDE to ignore session state choose → and click the button. The settings are effective the next time you log into KDE.