How to maintain session between multiple pages?

Hello Mendix Developers, I want to maintain session between pages of my app.  On First Screen Usersession will be created. Session will store information like username, type etc. I was doing this using non-persistent entity, but data stored in this entity get lost after opening new page. There are few more things that i want to store only in session to serve subsequent requests of multiple users.
1 answers

There is a built-in system entity "session" which you can use. Just add an association from your custom session entity to that entity. Then yours shouldn't get lost.