View active sessions on VL WEB

This Q&A forum allows users to post and respond to "How Do I Do ....." questions. Please do not use to report (suspected) errors - you must use your regional help desk for this. The information contained in this forum has not been validated by LANSA and, as such, LANSA cannot guarantee the accuracy of the information.
Post Reply
OmarMonroy
Posts: 6
Joined: Fri Jan 31, 2025 2:09 am

View active sessions on VL WEB

Post by OmarMonroy »

Good afternoon
I have a website where we need to see the users with active sessions. I tried to keep track of the job number that started the session in a table, but when I request to log out, the job number changes.
User avatar
Dino
Posts: 472
Joined: Fri Jul 19, 2019 7:49 am
Location: Robbinsville, NC
Contact:

Re: View active sessions on VL WEB

Post by Dino »

Job number depends on what web job is used and can change during the live of a session

At login time, in the server module that you use for login authentication, define a persistent field, assign a value that you can use a session number and keep that value persistent in your server modules. You can store that value in a table indicating starting date time for reference, etc.

Notice that the server routine have to require session to store a value in that persistent field or to read from it.

At logout or inactive session you can close your record... or to assume the session was abandoned after x time. Not many people takes the time to logout from web sessions these days
Post Reply