How to keep user information after login in JavaFX Desktop Application : <p>I have an application with login screen, after the user is authenticated some "data" is retrieved from a database (username and privileges), until here everything is well. </p>

<p>After the login process I need to access to the privileges to generate some menus across different JavaFX scenes, this all throughout the entire application in any moment, but I don´t know how to do it.</p>

<p>What I am looking for is a behavior such as SESSION variable in PHP (yep, I come from web development), which keeps information alive and accesible during a certain period of time (usually while user is logged in).</p>

<p>The information I have found about this topic is unclear and outdated, I mean, solutions that do not apply for JavaFX 2 or solutions with old design patterns.</p>

<p>I have created an image because in other forums I have found the same question but that is misunderstood, so I hope this could help.</p>

<p>Thanks to everyone.</p>

<p><a href="https://i.stack.imgur.com/9kEqB.png" rel="noreferrer"><img src="https://i.stack.imgur.com/9kEqB.png" alt="enter image description here"></a></p>
