Stateful applications use a database (DB) to store data or state from client requests and use this information for further requests. The session information is stored on the server or container.
Example - a weather app on a mobile phone always remembers which city you live in.