Hi All,
I am working on an application using LCDS model driven development. I have three mxml Applications producing three swf deployables which use a common model (fml). These flex apps live in a signle war and I have setup the service-config.xml to use amf and secure amf channels.
When I have more than one of three mxml applications open in the same browser I start to see the following exception:
(Message #0 targetURI=/1/onStatus, responseURI=)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
headers = (Object #1)
rootCause = null
body = null
correlationId = "670B4CFE-A178-2F2A-7CE7-D4E031A99AA3"
faultDetail = null
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."
clientId = null
timeToLive = 0.0
destination = ""
timestamp = 1.31783178968E12
extendedData = null
faultCode = "Server.Processing.DuplicateSessionDetected"
messageId = "19C3CF9D-7009-D1F6-0C33-10E3C9096DB4"
(Message #1 targetURI=/7/onStatus, responseURI=)
(Typed Object #0 'flex.messaging.messages.ErrorMessage')
headers = (Object #1)
rootCause = null
body = null
correlationId = "2EE877BB-3D9A-FA7C-657D-D4E02B096AE1"
faultDetail = null
faultString = "There was an unhandled failure on the server. The FlexSession is invalid."
clientId = "76A4150B-0312-8AED-C99C-D4C4635345E4"
timeToLive = 0.0
destination = "ScherzerAdmin.InvestigationType"
timestamp = 1.317831791712E12
extendedData = null
faultCode = "Server.Processing"
messageId = "19C3E2FE-600C-2FC7-EC01-ED3B1A9CE9CE"
I have looked into this a little bit and read about writing a servlet to manage sessions between the applications so they don't get stomped on, but using model driven development I am not sure where I would put that kind of code. I also wanted to find out if there was a particular or better way to handle this scenario.
Thanks,
Rich