Cannot destroy my flex session using FlexSessionListener

Hi all,
I have what I thought was a simple need: destroy a session once a user logs out of my application either via a logout button or by closing the browser.
I have implemented the body ... onunload="disconnectAll()" .. method which I found numerous examples of on the net and have my logout button call the same disconnectAll() upon click.
All this is good and my FlexSessionListener sessionDestroyed() gets called. However, I can see from my logs that a sessionCreated() also gets called straight after the call to sessionDestroyed!
Has anybody seen this or have any idea why this is happening?
Are there threads running or feeds from clients that are keeping my session alive through recreating another one?
Any help would be greatly appreciated!

I'm in the same boat. Using the latest version (8.0.12 build 25282). Can not connect to the console session on either OSX 10.9.5 or 10.10.1. This did indeed work previously. 
Looked at the "Send log" output and find multiple instances of this:
[2014-Dec-01 14:53:53] RDP (0): Final rdp configuration used: screen mode id:i:0
desktopwidth:i:1920
desktopheight:i:1200
use multimon:i:1
session bpp:i:24
full address:s:guy
audiomode:i:0
username:s:juan
disable wallpaper:i:0
disable full window drag:i:0
disable menu anims:i:0
disable themes:i:0
alternate shell:s:
shell working directory:s:
authentication level:i:2
connect to console:i:1
gatewayusagemethod:i:0
disable cursor setting:i:0
allow font smoothing:i:1
allow desktop comredirectprinters:i:0
bookmarktype:i:3
use redirection server name:i:0
The important part seems to be "connect to console:i:1". That seems to indicate that an integer value is set to 1 (True?). 
Running "qwinsta" on the remote server show:
Microsoft Windows [Version 5.2.3790](C) Copyright 1985-2003 Microsoft Corp.
C:\Documents and Settings\juan>qwinsta 
SESSIONNAME       USERNAME                 ID  STATE   TYPE        DEVICE
 console                                     0  Conn    wdcon
 rdp-tcp                                 65536  Listen  rdpwd
>rdp-tcp#452       juan                      1  Active  rdpwd
                   juan                      3  Disc    rdpwd
C:\Documents and Settings\juan>
Clearly, I'm not connected to the console. 
Is there anything else that can be provided or checked?

Similar Messages

  • Flex session using blazeds?

    Hello,
    Need help on managing the Flex session using blazeds. If source is available, it would help a lot.

    Hi saisri2k2,
    Instead of making use of Server side session you can make a logic of your own at the client side itself by making use of the FlexEvent.IDLE and doing the appropriate action accordingly.
    You can google for the FlexEvent.IDLE  keyword. So if the user stays idle for a particular time you can register a check in the eventListener registerd for FlexEvent.IDLE and navigate or redirect user to another page.
    Thanks,
    Bhasker

  • Firefox process keeps running. I cannot open a new session until I manually stop Firefox 32 process in tax manager. Using Win Vista Ultimate 64 Version 6.0 Service Pack 2

    Firefox process keeps running. I cannot open a new session until I manually stop Firefox 32 process in tax manager. Using Win Vista Ultimate 64 Version 6.0 Service Pack 2

    Firefox is already running but is not responding
    * https://support.mozilla.com/en-US/kb/Firefox%20is%20already%20running%20but%20is%20not%20responding
    Firefox Hang at Exit
    * https://support.mozilla.com/en-US/kb/Firefox%20hangs#w_hang-at-exit
    Check and tell if its working.

  • Invalid session in FlexSessionListener.sessionDestroyed

    I'm implementing a FlexSessionListener like:
    public void sessionDestroyed(FlexSession flexSession) {
    if (LOG.isInfoEnabled()) {
    LOG.info("Flex session destroyed: " + flexSession
    + " - "
    + flexSession.getUserPrincipal());
    unregisterSessions(flexSession); // accesses session
    attribute
    try {
    flexSession.removeSessionDestroyedListener(this);
    catch (LocalizedException e) {
    LOG.warn("Error during sessionDestroyed for " + flexSession,
    e);
    Using the flexSession parameter causes exceptions, which is
    surprising at best.
    Accessing a session attribute causes this:
    flex.messaging.LocalizedException: The FlexSession is
    invalid.
    at
    flex.messaging.FlexSession.checkValid(FlexSession.java:515)
    at
    flex.messaging.FlexSession.getAttribute(FlexSession.java:269)
    at
    com.acesis.security.SessionRegistry.unregisterSessions(SessionRegistry.java:492)
    at
    com.acesis.security.SessionRegistry.sessionDestroyed(SessionRegistry.java:345)
    at flex.messaging.FlexSession.destroy(FlexSession.java:250)
    at
    flex.messaging.endpoints.rtmp.RTMPFlexSession.close(RTMPFlexSession.java:42)
    at
    flex.messaging.endpoints.rtmp.NIORTMPConnection.invalidateFlexSession(NIORTMPConnection.j ava:221)
    at
    flex.messaging.endpoints.rtmp.RTMPFlexSession.invalidate(RTMPFlexSession.java:47)
    at
    flex.messaging.security.LoginManager.logout(LoginManager.java:192)
    at
    flex.messaging.services.AuthenticationService.serviceCommand(AuthenticationService.java:6 5)
    at
    flex.messaging.MessageBroker.routeCommandToService(MessageBroker.java:622)
    at
    flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:298)
    at
    flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java: 682)
    at
    flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:665 )
    at
    edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPo olExecutor.java:643)
    at
    edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolEx ecutor.java:668)
    at java.lang.Thread.run(Thread.java:595)
    Removing the FlexSessionListener causes this:
    flex.messaging.LocalizedException: The FlexSession is
    invalid.
    at
    flex.messaging.FlexSession.checkValid(FlexSession.java:515)
    at
    flex.messaging.FlexSession.removeSessionDestroyedListener(FlexSession.java:372)
    at
    com.acesis.security.SessionRegistry.sessionDestroyed(SessionRegistry.java:347)
    at flex.messaging.FlexSession.destroy(FlexSession.java:250)
    at
    flex.messaging.endpoints.rtmp.RTMPFlexSession.close(RTMPFlexSession.java:42)
    at
    flex.messaging.endpoints.rtmp.NIORTMPConnection.invalidateFlexSession(NIORTMPConnection.j ava:221)
    at
    flex.messaging.endpoints.rtmp.RTMPFlexSession.invalidate(RTMPFlexSession.java:47)
    at
    flex.messaging.security.LoginManager.logout(LoginManager.java:192)
    at
    flex.messaging.services.AuthenticationService.serviceCommand(AuthenticationService.java:6 5)
    at
    flex.messaging.MessageBroker.routeCommandToService(MessageBroker.java:622)
    at
    flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:298)
    at
    flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java: 682)
    at
    flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:665 )
    at
    edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPo olExecutor.java:643)
    at
    edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolEx ecutor.java:668)
    at java.lang.Thread.run(Thread.java:595)
    The FDS documentation doesn't specify that you cannot do
    anything with the flexSession in a sessionDestroyed call.
    The same code has worked, IIRC, in GMC 4. It seems that the
    behavior changed in GMC 5 or 6. I'm running the released bits now.
    Is this the intended behavior?
    Jürgen Failenschmid

    Hi Jürgen,
    The behavior for session destruction notification matches the
    behavior defined by the Servlet spec and its HttpSessionListener
    interface. The behavior is to notify session destroy listeners
    after all attributes have been unbound from the session and the
    session have been invalidated. My opinion is that the destory
    listener hook as spec'ed isn't very useful (I'd have voted for
    pre/post hooks).
    If you want to do something on session shutdown, the safer
    approach is to create an instance of a class that implements the
    FlexSessionBindingListener interface on session creation and add it
    as an attribute on the new session. As long as no code removes this
    attribute from the session arbitrarily, when the session is
    destroyed this attribute will be unbound and its valueUnbound()
    callback will be invoked. You shouldn't base your logic in
    valueUnbound() on having access to attributes in the session,
    because other attributes may be unbound by the time your listener
    is unbound.
    Best,
    Seth

  • Flex session replication among cluster Help needed!

    Hi,
    I'am using Flex 3, LiceCycle Data Service 2.5.1, JBoss 4.2.1 in a web application. Our JBoss servers are in a cluster. We want to replicate Flex session among cluster, but it doesn't work. Did someone face issue with Flex session replication among application servers?
    Thank you for your help
    Gerard

    Gerard,<br /><br />You will need to cluster the LCDS 2.5.1 instances the same way you clustered <br />JBoss.<br /><br />Check out the "Configuring Data Services" chapter in the Admin guide:<br />http://livedocs.adobe.com/livecycle/es/sdkHelp/programmer/lcds/services_config_4.html<b r /><br />--<br />Tom Jordahl<br />Adobe<br /><br /><br /><[email protected]> wrote<br />> Hi,<br />><br />> I'am using Flex 3, LiceCycle Data Service 2.5.1, JBoss 4.2.1 in a web <br />> application. Our JBoss servers are in a cluster. We want to replicate Flex <br />> session among cluster, but it doesn't work. Did someone face issue with <br />> Flex session replication among application servers?<br />> Thank you for your help<br />><br />> Gerard

  • Flex Session implementation in Java

    Hi
    I am new to Flex. I have requirement like "store and retreiving a value in FlexSession instead of passing it to UI". The application in which I am working is an existing application where the value which I mentioned is generated from a service call and storinand reteiving it inside a DB. I neeed to modify it  so that it should be from Flex Session.
    I tried using FlexContext.getFlexSession().setAttribute("abc","value");
    But while retreiving through  FlexContext.getFlexSession().getAttribute("abc") it is returning null.
    Could somebody help in finding a solution for this. It is urgent.

    Thanks for your reply Claudiu. FlexContext comes from flex-messgaing-core.jar and I don't think it is a custom class. And my issue got solved . I think I missed the below entry in web.xml,
    <!-- Http Flex Session attribute and binding listener support -->
     <llstener>
    <listener-class>flex.messaging.HttpFlexSession</listener-class>
    </llstener>

  • Cannot create the RTP Session

    we have made multithread rtp streaming server and tried to transmit the mpg file in a applet on a web page using tom-cat server.
    we got the following error...
    Cannot create the RTP Session: Local Data AddressDoes not belong to any of this hosts local interfaces
    Failed to initialize the sessions.
    java.security.AccessControlException: access denied (java.lang.RuntimePermission exitVM)
         at java.security.AccessControlContext.checkPermission(Unknown Source)
         at java.security.AccessController.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkPermission(Unknown Source)
         at java.lang.SecurityManager.checkExit(Unknown Source)
         at java.lang.Runtime.exit(Unknown Source)
         at java.lang.System.exit(Unknown Source)
         at Receive.start(MyPlayer.java:90)
         at MyPlayer.start(MyPlayer.java:30)
         at sun.applet.AppletPanel.run(Unknown Source)
         at java.lang.Thread.run(Unknown Source)

    I am really surprised that no one has answer for my query?????

  • ORA-12721: operation cannot execute when other sessions are active

    Hi,
    I started my DB like following :
    1) Change INIT.ORA file;  unset parallel_server parameter.
    2) Execute these commands:
    STARTUP MOUNT ;
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    ALTER SYSTEM SET AQ_TM_PROCESSES=0;
    ALTER DATABASE OPEN;
    SHUTDOWN IMMEDIATE;
    SQL> STARTUP RESTRICT  pfile='C:\oracle\product\10.2.0\db_1\database\initORCL.ora';
    ORACLE instance started.
    SQL> alter database national character set INTERNAL_CONVERT UTF8;
    alter database national character set INTERNAL_CONVERT UTF8
    ERROR at line 1:
    ORA-12721: operation cannot execute when other sessions are activeWhy this error when DB is opened in strict and I'm the only user ?
    SQL> select count (*) from v$session;
      COUNT(*)
            20Any solution ?
    Thank you.

    Hi
    This operation is dangerous, please ensure that you have a full backup before doing that operation.
    Please use that order :
    SHUTDOWN IMMEDIATE;
    -- make sure there is a database backup you can rely on, or create one
    STARTUP MOUNT;
    ALTER SYSTEM ENABLE RESTRICTED SESSION;
    ALTER SYSTEM SET JOB_QUEUE_PROCESSES=0;
    ALTER SYSTEM SET AQ_TM_PROCESSES=0;
    ALTER DATABASE OPEN;
    ALTER DATABASE CHARACTER SET <new_character_set>;
    -- a alter database takes typically only a few minutes or less,
    -- it depends on the number of columns in the database, not the
    -- amount of data.
    SHUTDOWN;
    Please note that :
    The command requires the database to be
    open but only one session, the one executing the command, is allowed.
    For the above error conditions Oracle9i will report one of the errors:
    ORA-12719: operation requires database is in RESTRICTED mode
    ORA-12720: operation requires database is in EXCLUSIVE mode
    ORA-12721: operation cannot execute when other sessions are active
    Oracle9i can also report:
    ORA-12718: operation requires connection as SYS
    if you are not connect as SYS (INTERNAL, "/ AS SYSDBA").
    Let us know if this helps.
    regards,
    Hub
    Edited by: Hub on Dec 10, 2008 1:22 PM

  • Flex Session & login logout

    I have a web application in flex with back end as LCDS. I want to execute a function in server when the client logs out/close the browser.
       How can I implement this ( calling a severside function while user close the browser without properly logging out)?
    Can anybody help me?

    thank you for your advice yogi, but I would be more understanding if tried in the form of training / tutorials, can you tell the link that discusses login / logout session using flex and java
    thanks

  • [svn:bz-4.0.0_fixes] 23961: Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel

    Revision: 23961
    Revision: 23961
    Author:   [email protected]
    Date:     2012-06-15 04:42:44 -0700 (Fri, 15 Jun 2012)
    Log Message:
    Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel
    While invalidating session, make sure a new one does not get created.
    Modified Paths:
        blazeds/branches/4.0.0_fixes/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPE ndpoint.java
    Property Changed:
        blazeds/branches/4.0.0_fixes/modules/

    You're trying to do this directly in ActionScript without using Flex, correct?
    The mxmlc compiler for Flex adds some registerClassAlias calls to map types between the client and the server. This will be missing if try to use the messaging code outside of a Flex app.
    Take a look at the mx.utils.RpcClassAliasInitializer class in rpc.swc. This has a static registerClassAliases method that will do the class registration for you. You should just need to call this before running your messaging code.
    -Alex

  • How to restore previous session using the control panel

    I have tried all pathways through firefox with no results. There is a way to restore previous session using the control panel. I tried it before and it worked but I forgot to write down the pathway and lost this method. Does anyone know it?
    thank you

    I can't think of anything useful in the Windows Control Panel, but perhaps you were using the System Restore feature? As a shortcut for that, you could try the Previous Versions tab of the Properties dialog for sessionstore.js or sessionstore.bak.
    First, I recommend backing up your current sessionstore files.
    Open your current Firefox settings (AKA Firefox profile) folder using
    Help > Troubleshooting Information > "Show Folder" button
    Leaving that window open, switch back to Firefox and Exit
    Copy sessionstore.js and sessionstore.bak to a safe location (e.g., Documents folder). If you cannot see those file extensions, try this Microsoft support article: [http://support.microsoft.com/kb/865219].
    Then right-click sessionstore.js, click the Previous Versions tab, and see what is available.

  • Cannot create the RTP Session: Can't open local data port

    Hi,
    I'm trying to connect to two webcams simultaneously in the order:
    MediaLocator inputLocator1 = new MediaLocator("rtp://hostname1:8000/video");
    MediaLocator inputLocator2 = new MediaLocator("rtp://hostname2:8000/video");
    But I get this during the second connection:
    Cannot create the RTP Session: Can't open local data port: 8000
    And I can't see the video from hostname2.
    I did a check via netstat, and it seems that both mycomputer is receiving the video from both hostname1 & hostname2:
    TCP mycomputer:3236 hostname1:8000 ESTABLISHED
    TCP mycomputer:3264 hostname2:8000 ESTABLISHED
    TCP connections to both host were established!! But why can't I see the video of hostname2???? I've thought of 2 possible reasons why I cannot see the video of hostname2:
    1. Is this set of local data port maintained by Java? i.e It's not the same as the TCP port 8000 that I see in mycomputer's netstat. If yes, Java has assigned its local data port 8000 to hostname1, so it fails to reassign that port 8000 to hostname2 while hostname1 is still connected. Any other way to fix this apart from changing the portnumber of hostname2?
    2. It has to do with the custom.jar? I've read in an article somewhere in the forum that the custom.jar has to be customized (using JFMCustomizer) to receive video from two hosts with the same portnumber. Can someone elaborate the necessary boxes to check in the JFMCustomizer?
    Thanks much,
    Rach

    After all this while, I finally figured out the problem. In my code, I use MediaLocator to code the receiver and the transmitter. E.g.:
    MediaLocator inputLocator1 = new MediaLocator("rtp://hostname1:8000/video");
    player1 = Manager.createPlayer(inputLocator1)
    MediaLocator inputLocator2 = new MediaLocator("rtp://hostname2:8000/video");
    player2 = Manager.createPlayer(inputLocator2)
    Manager would complain "Cannot create the RTP Session: Can't open local data port: 8000" because port 8000 is already used up by player1, i.e.:
    mycomputer:8000 maps to hostname1:8000
    mycomputer:8000 cannot re-map to hostname2:8000
    To work around this, I'll need to use SessionAddress. SessionAddress provides the flexibility to do an independent local port mapping, e.g.:
    mycomputer:5000 maps to hostname1:8000
    mycomputer:5002 maps to hostname2:8000
    Rach

  • Internal Error: Cannot destroy root table.

    Hi Everyone!
    I am working on a Pagemaker 7 doc, and when I try to delete a duplicate page Pagemaker shows me the following message: "Internal Error: Cannot destroy root table" then the desired page is not deleted.
    Can anybody help me?

    >tive os mesmos problemas mencionados acima...
    I had the same problems mentioned above...
    There are several different problems mentioned above. Did you have them all?
    >instalei o Scribus de http://www.scribus.net/ refiz o documento nele e pronto, gerou PDF e arquivos de publicação, para gráfica , FUNCIONA muito bem excelente
    I installed Scribus from ..., remade the document in it, and soon it generated PDFs and files for publication, for graphics, IT WORKS very well excellent
    Good for you, your problem seems to be solved.
    > è claro que a adobe recomenda que se migre para o indesign, mas além do custo adiciona, temos que lembrar as centenas de arquivos que temos e que provavelmente estarão perdidos...
    >...certamente não existirá mais um suporte adequado às nossas necessidades nem desenvolvimento, nem sequer estarão preocupados com as compatibilidades e as nossas intermináveis horas produzindo documentos
    it's clear that Adobe reccomends to move on to In_Design but, apart of the additional cost, we must remember the hundreds of files we have and that we will probably loose...
    ... certainly there will no longer be adequate support for our need for development, not even a concern about compatibilities and the endless hours we have spent producing documents
    Well, it has been commented for years now that PageMaker is an obsolete program. It's all right for you to rant, but you certainly knew what you were doing when you kept on using it despite the many warnings.
    > ... ainda sobre erros internos, alguém sabe como recuperar arquivos que acusam internal error index ??? quase todos os colegas editoradores que ainda usam o pagemaker depois de julho de 2007 estão encontrando este tipo de erro em suas produções...
    ... continuing with internal errors, anyone knows how to recover files showing an internal index error??? Almost every publishing colleague still using PageMaker after July 2007 have been receiving this error in their documents...
    Please read message #7 above. And if you need further help, don't forget to give details about your setup. For example: are you using PageMaker in 9.2.2, or in OSX Classic? What OS version? What PageMaker version?

  • When starting Firefox attempts to restore or new session, using either suggestion it opens and unable to click on anything.

    On restart it asks if I wish to restore previous session or new. Clicking either will open appropriate session, but, then it refuses to do anything when you click on it. It cannot be closed except throught using task manager. After restarting Windows same thing. I have even uninstalled and reinstalled Firefox with the same result.

    This can be a problem with the file [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    Delete [http://kb.mozillazine.org/sessionstore.js sessionstore.js] and sessionstore.bak in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder]
    If you see files sessionstore-##.js with a number in the left part of the name like sessionstore-1.js then delete those as well.
    See:
    * http://kb.mozillazine.org/Session_Restore

  • Close a flex application using AS3

    Hi everyone,
    I am building a flex application using AS3, and I would like
    to allow the user to close the application through a CLOSE button.
    Do you know how can I do that ??
    I traied with fscommand("quit"); but it dosen't work.

    The rules are that UIComponent cannot be used in the download progress bar.  You'll need to use really low level objects.
    Alex Harui
    Flex SDK Developer
    Adobe Systems Inc.
    Blog: http://blogs.adobe.com/aharui

Maybe you are looking for

  • Release strategy for Schedule lines in SD

    Hello All Can we create a release strategy for Schedule Lines in Scheduling Agreement? If Yes How? I have already maintained a release strategy for Item Level... which I want to put it for Schedule line as well.... Thanks in advance.

  • How can i use a digital camera as webcam?

    the iSight camera *****. I have a 12mp canon digital camera, can i use that in lieu of iSight to use in iChat and Facetime? if so, what's the procedure? i have a macbookpro on snowleopard 10.6.8

  • Error in Import of Business Package

    Hi, I am trying to import Asset Service Business Package in EP 5.0. But it's unable to find some of .epa files and hence not uploading the Business Package correctly. I have successfully uploaded business package for ESS. Is there some problem in the

  • Deactivating Photoshop with a script?

    Is there a way to deactivate photoshop using a script? Basically to automate the process? Thanks, Dan

  • ILife language installation

    Hi, I ordered iLife in the Belgian Apple Store and got DVD with Dutch inscriptions. I am tryin to exchange it, but I woonder if you can install any language from the DVD ? I run everything in English - don't care about the printed instructions.