KDE restart running apps

When KDE shuts down, where does it keep the list of running applications that it restarts after the user logs in?

Thanks.

It’s a feature. I wouldn’t know how to turn it off. It’s never an issue for me, since I close all my apps before I shut down to be sure all my docs are saved.