Web Session Question

How can I retain session details/info from other pages after successful login? I can’t access session properties or they are empty when I try to access them from other pages or when reloading the page/app.
I tried to save session infos to cookies but when loading the pages or returning to the web app, the cookies are gone eventhough they were set to expire in the future dates.


LoginPage - login to rest api → returns token → saves token to session.token property → got to other page
MainPage.Show → can’t access the session.token I mean, the session.token is empty right after login page