In my flex application, I'm using an event listener for session out in idle state. It's not working for me.
Here is my code:
I have placed below code in a method
this.systemManager.addEventListener(FlexEvent.IDLE,onUserIDLE);
and the calling function onUserIDLE
private function onUserIDLE(e:FlexEvent):void
{
if(e.currentTarget.mx_internal::idleCounter == 60000)
{
this.systemManager.removeEventListener(FlexEvent.IDLE,onUserIDLE);
Alert.show("Session time Out");
menuRO.logoutUser();
signOutBtn_clickHandler();
}
}
The above code doesn't work for my application, it's not entering the if(e.currentTarget.mx_internal::idleCounter == 60000)
statement.
Kindly give me suggestions.
Thanks in advance!