How to know which "remote port" from server routine?
Posted: Wed Jun 23, 2021 7:16 am
Is there any way to know which "remote port", as seen on netstat -cnn , are we using in our server routine?
If I start a web page that calls a server routine several times, each one creates a separated connection, with the same IP, been the difference the remote port. I would like to capture that. I can see that the job related to that is one of the instance jobs for apache with the name of the LANSA installation, but by the user QTMHHTTP , not the LWEB_JOB.
The goal is to use that as part of the security measures to confirm we still talking with the same user.

In the same line... can we recover the unique session number generated in the server routine here:
If I start a web page that calls a server routine several times, each one creates a separated connection, with the same IP, been the difference the remote port. I would like to capture that. I can see that the job related to that is one of the instance jobs for apache with the name of the LANSA installation, but by the user QTMHHTTP , not the LWEB_JOB.
The goal is to use that as part of the security measures to confirm we still talking with the same user.

In the same line... can we recover the unique session number generated in the server routine here:
Code: Select all
#COM_OWNER.StartSession Timeout(3600)