Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>I feel for you - I've fought this for a long time and never found a solution, but found a fix <strong>that worked for me</strong> so hopefully it will at least keep this issue under control until you can find the culprit. (And if you do, please post it here).</p> <p>Now, I've got a slightly different environment than you (I'm using CF on the backend) so keep that in mind.</p> <p>I also tried the whole "FlexClient.getInstance().id = null;" thing too and it didn't work <em>by itself</em>, but it was <strong>how</strong> and <strong>where</strong> I implemented it that made it work.</p> <p>So, this is what <em>I</em> did that made the problem go away.</p> <p>On my main form, <strong>before ANY</strong> RemoteServer calls are made, I setup a creationComplete handler and placed this code you already know and love:</p> <pre><code>// Not sure if this is needed anymore, but I'm leaving it in FlexClient.getInstance().id = null; </code></pre> <p>Next, in my <strong>very first call</strong> to the server, I gracefully handle the failure, and clear that stinking ID out again:</p> <pre><code> public function login(event:Event): void { Swiz.executeServiceCall(roUsers.login(), function (event:ResultEvent): void { // Handle a successful login here... } , function (faultevent:FaultEvent): void { // This code fixes this issue with IE tabs dying and leaving Flex with a Duplicate Session problem. if (faultevent.fault.faultString.indexOf("duplicate")) { FlexClient.getInstance().id = null; Swiz.dispatchEvent(event); } }); } </code></pre> <p>And it <em>worked</em>.</p> <p>Basically, try the call, and if it fails for the duplicate session thing, then clear out that ID and reissue the call.</p> <p>The key point being that <strong>I don't think clearing out the ID works until you've made at least one call to the server</strong>. Once you do, it worked like a CHARM for me, and in <strong>all</strong> of my apps.</p> <p>Note that I'm using the SWIZ framework above so just translate it to your own world.</p> <p>By the way, I've never seen this error in any other browser but IE, and I believe it <em>may</em> have something to do with the infamous Dead Tab Issue that IE suffers from.</p> <p>If the above doesn't work, I also know of a few changes to some config files on the server that might help.</p> <p>Good luck my friend!</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload