views:

507

answers:

0

I've implemented security of a BlazeDS service accessed through a Flex application by logging in and out of the ChannelSet (I followed: http://livedocs.adobe.com/blazeds/1/blazeds_devguide/help.html?content=services_security_1.html ).

How do I handle timeouts? Right now I have a faultHandler for RemoteObject calls that checks if event.fault.faultCode == "Client.Authentication" which is triggered by something like:

<session-config>
  <session-timeout>1</session-timeout> 
</session-config>

on the server side. Which works fine until I try to log back into the channel, which results in an exception with the message: Error: ChannelSet is already authenticated.

Thanks.