Hi All,
I tried to get Users.sid value after logged on at server action with GetCookie, it returns empty value. Anyone know how to get the value?
In OutSystems Reactive Web, there isn’t a direct way to retrieve the session ID like in traditional web applications. OutSystems abstracts session handling, so you don’t have direct access to the session ID. However, you can implement alternative ways to manage unique session identifiers if needed. you can use this approach
In Reactive Web apps, you can use client variables (local storage or session storage) or cookies to simulate session tracking.
sessionStorage.setItem('SessionID', 'unique-id');
Thanks
Regards Gourav Shrivastava
Thank you. This is helpful. Is it possible to set unique id using server action instead of javascript?
No needed! Please use JavaScript for that
In OutSystems, server actions run on the server side and don't have direct access to client-side session storage (such as sessionStorage in JavaScript) because session storage is client-side and scoped to the browser.
If you need you can also generate UUID from the server action for security purposes,take the output from this, and set the session in the client action
Hi Drexxor ,
You can try by GetSessionId.
--RJ--
Did you not read the information message in the screenshot you shared?