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.
View active sessions on VL WEB
Re: View active sessions on VL WEB
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
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