Hi,
I am able to get ip address inside login event handler, since I have access to session, but in logout event handler i dont have access to (probobally already destroyed ) session, so is there a way to get IP address in user_logout event.
get IP address inside USER_LOGOUT event handler
Re: get IP address inside USER_LOGOUT event handler
Hi,
In a USER_LOGOUT event, one of the parameters you get is the User object, which has a getSession() method which returns you a Session object, from where you can get the IP.
In a USER_LOGOUT event, one of the parameters you get is the User object, which has a getSession() method which returns you a Session object, from where you can get the IP.
Skills: SFS Pro, SFS2X, AS2.0/AS3.0, Java, HTML5/CSS3/JS, C#
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Portfolio: https://rjgtav.wordpress.com/
SFS Tutorials: http://sfs-tutor.blogspot.com/ - Discontinued. Some examples may be bugged.
Re: get IP address inside USER_LOGOUT event handler
thanks, a lot,
Who is online
Users browsing this forum: No registered users and 102 guests