Copy link to clipboard
Copied
We're getting the "duplicate session" error using Flash Remoting from Air 3.4 Mobile Apps ( IOS and Android ) with Coldfusion 10 Standard.
faultCode:Server.Processing.DuplicateSessionDetected faultString:'Detected duplicate HTTP-based FlexSessions,
generally due to the remote host disabling session cookies.
Session cookies must be enabled to manage the client connection correctly.' faultDetail:'null'
Have read most of the docs about this error -all to do with LCDS
Notes:
Please advise thank you.
Copy link to clipboard
Copied
I enabled session management for the CFCs in Application.cfc
What are the values of sessionTimeout and applicationTimeout? Do you rewrite the session anywhere, for example, using structDelete or structClear? Any cfcookie code, too?
Copy link to clipboard
Copied
For our profect I think this issue was caused as follows:
Believing that remoting was full asynchronous we fired a 2 or 3 remote calls to the server at the same time ( within the same function ) - usually when the users goes to a new section of the app.
This seemed to trigger the duplicate http session error since according to http://blogs.adobe.com/lin/2011/05/duplication-session-error.html two remote calls arriving before a session is created will cause 2 sessions to be created.
Our current solution ( too early to say it works ) is to daisy chain the multiple calls together .
Also there seemed to be an issue where mobile apps that never quit ( thanks Apple! ) caused the error when activated after a few hours.
I guess the session expires on the server and the error above occurs on activation.
So the mobile apps now ping the server with a remote call when activated after sleeping for more than one hour.
All duplicate http errors are silently caught and reported.
Fingers crossed we won't get any more!