Pick session IP address in Web mode [message #660720] |
Sat, 25 February 2017 04:49 |
chat2raj.s
Messages: 163 Registered: October 2010 Location: Chennai, India
|
Senior Member |
|
|
How can i log (audit) the local computer name and IP address of each user, who is using a particular form in WEB mode. Some existing code actually retrieves the ip address of the application server and with this am unable to identify who is the actual user of that session.
|
|
|
|
Re: Pick session IP address in Web mode [message #660730 is a reply to message #660722] |
Sun, 26 February 2017 00:34 |
chat2raj.s
Messages: 163 Registered: October 2010 Location: Chennai, India
|
Senior Member |
|
|
Let me try using the following way and feedback. Need to install webutil.pll to compile this.
IF GET_APPLICATION_PROPERTY(USER_INTERFACE) = 'WEB' THEN
M_CLIENT_HOST := WEBUTIL_CLIENTINFO.GET_HOST_NAME;
M_CLIENT_IP := WEBUTIL_CLIENTINFO.GET_IP_ADDRESS;
END IF;
|
|
|
|
|
|
Re: Pick session IP address in Web mode [message #668812 is a reply to message #666558] |
Thu, 15 March 2018 05:58 |
chat2raj.s
Messages: 163 Registered: October 2010 Location: Chennai, India
|
Senior Member |
|
|
In forms 10g version after subclassing WEBUTIL.OLB and writting the below code in a Button, it worked fine.
I tried initially in Pre-form which was throwing some errors, but inside a button click it is perfect.
IF GET_APPLICATION_PROPERTY(USER_INTERFACE) = 'WEB' THEN
M_CLIENT_HOST := WEBUTIL_CLIENTINFO.GET_HOST_NAME;
M_CLIENT_IP := WEBUTIL_CLIENTINFO.GET_IP_ADDRESS;
END IF;
|
|
|