How to find when user logins different IP address when there is a valid session
Question
Application Type
Reactive

I want to log when a user login in a application through different IP address, when user already a valid session with another IP address.

Eg: If I login with user abc with xyz address and when same user abc logins into application with different IP address then, I need to capture it.

Hi Reddy,

You can use GetIP action of HttpRequestHandler to get the IP address of a user . You can extend the User entity and can store the current IP address . and if the user try's to login from different IP then check the last login and the IP address if different than capture.

Hope this will help.

Best Regards

Devendra

Have a field for the IP address on the user extended properties entity(you have to create yourself) and record the last IP that the User logged in. If you want to have a log history, you need to have a third entity that records various ips for the user instead of having just the user extended properties entity. In this third entity, you will have the id of the extended properties entity and the user id from the User entity and the IP field.

Then you can get the IP using the GetIp, check the below post to see how to get the IP.

https://www.outsystems.com/forums/discussion/63966/how-to-get-user-ip-in-outsystems-reactive-app/

Kind Regards,

Márcio


Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.