Regarding flex session

hi,
My question is ,using username and password i was logged in.But how i have to set userid into session in flex. i am using backend server PHP.
please find me the solution to solve the problem.
Thanks and Regards,
venkat.R

Hi a.bhavika,
There is not specifically any session management in Flex as it runs everything on the client side if at all you want to mainatain you can maintain it on the server side. ...and I think for your case I dont think you need any session managemenet as at the time of login only you can identify which user has logged in to the syetem and based on the user logged in you can load all the previleges of that particular user in the Flex application.
Check out the links below for your understanding...
http://www.forta.com/blog/index.cfm/2006/9/24/flex-and-session-state-management
http://www.assembla.com/wiki/show/romoz/Session_Management_in_Flex
Thanks,
Bhasker

Similar Messages

  • [svn:bz-4.6.x] 23962: Bug#3200562: New Flex Session Id generated while disconnect with streaming amf channel

    Revision: 23962
    Revision: 23962
    Author:   [email protected]
    Date:     2012-06-15 04:57:45 -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.6.x/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoin t.java

    I thought the same that those devices simply are too old. However I would like to know what causes this capabilities change. We want to get rid of the old H/W, but at the moment it looks as if we would need to revert back to the 4402 in order to get those things working again.
    I have not enough information, but those devices are some kind of handhelds. Their MAC OUI belongs to Newport Electronics.
    Regards,
    Patrick

  • 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>

  • Is Flex Session Tracking browser compatible?

    I have implemented Flex Session Tracking it works fine with
    Internet Explorwer browser but it does not work with Mozilla? Is it
    not browser compatible?

    Is it possible for you to send me your session tracking
    codes, bcoz im also doing session tracking.
    thanks

  • 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

  • [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

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

    Revision: 23960
    Revision: 23960
    Author:   [email protected]
    Date:     2012-06-15 04:15:18 -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/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java

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

    Revision: 23948
    Revision: 23948
    Author:   [email protected]
    Date:     2012-06-13 06:11:35 -0700 (Wed, 13 Jun 2012)
    Log Message:
    Bug##3200562: New Flex Session Id generated while disconnect with streaming amf channel
    On session time out, Flex Client is invalidated on the server side. It also results in Flex Session getting invalidated. In order to complete the client-server streaming connection handshake, the client ends up sending a CLOSE command. On the server side, for any work to be done, the MB first needs to creates a Flex Session (if none exists). After doing the necessary cleanup, the newly created Flex Session will also be invalidated. No stray Flex Sessions will left dangling...
    Modified Paths:
        blazeds/trunk/modules/core/src/flex/messaging/endpoints/BaseStreamingHTTPEndpoint.java

  • Regarding maintaining session in flex

    Hello,
              I am developing a flex application which is using jsp for database connectivity. I am using HTTP request for connecting to jsp page and passing and retrieving parameters. Now I wanted to ask how can I maintain session in flex so that I can know which client has logged into the system and on the basis of that can assign privileges to the client. Is it possible in flex and how?Reply needed urgently.
    Thanks in advance.

    Hi a.bhavika,
    There is not specifically any session management in Flex as it runs everything on the client side if at all you want to mainatain you can maintain it on the server side. ...and I think for your case I dont think you need any session managemenet as at the time of login only you can identify which user has logged in to the syetem and based on the user logged in you can load all the previleges of that particular user in the Flex application.
    Check out the links below for your understanding...
    http://www.forta.com/blog/index.cfm/2006/9/24/flex-and-session-state-management
    http://www.assembla.com/wiki/show/romoz/Session_Management_in_Flex
    Thanks,
    Bhasker

  • Regarding Flex 3 and Jboss 4.2

    Hello Frnds,
    i am using flex 3
    I am using JBOSS 4.2 as server and if i start the server in the builder it is running properly .
    If i add any project to that jboss server and restarting the server it is throwing an exception like
    java.lang.NullPointerException  and the serveris not starting.
    Please could any one suggest me how to overcome this exception
    Thanks & Regards
    srujan.

    Are you planning on using Jdk 1.4.2 to run JDeveloper or simply the applications you build?
    In case you want the former, I would recommend against it. There are some differences between whatever version of Java it is that 3.2.3 uses and 1.4.x which make it hard to predict how JDev will react.
    The same actually applies to the applications you develop, but then you are also able to try and work around the issues. This, of course, is not the case for JDev.

  • Flex session

    Hi,
    I have 2 mxml files. One is Order Entry screen. When a user
    enters the order and submits. It goes to the other page to show the
    m their order, totals etc. But when I come back from the page the
    main page doesn't hold the sorting , filtering etc.., It just shows
    a new page. I use Nvaigate_to_URL to return to the page. I have a
    datagrid in the order entry page which gets populated from the sql
    server with 2 editable columns so the user can enter the order
    amount. Also the back button reloads a new page. Is there a session
    id in flex to keep track of the sessions ? Please help.. I am a
    newbee..
    Thanks in advance..

    You are not using Flex correctly. In fact, you are losing
    several prime benefits of a Flex application, including more
    responsive UI and state retention.
    Do not use navigateToUrl. Instead, use the built-in
    navigation containers like ViewStack, which I would advise for your
    login situation. In Flex, you typically never reload the page.
    Flex apps do not need "sessions" because they can maintain
    state on the client.
    Tracy

  • Flex - Session like variable ?

    hi all,
    Is there a way to store a valriable in flex?( like a session in java/php).
    I am doing flex& Java integration but i need to store variable(var username:String in login page) in flex application.
    And I need to access user name in other pages also.And I need to get username from login to other components.I dont need to do cross cutting.that mean one component acess other component.but i need to do it in loosly couple manner..
    Can Anyone have sugessions?Any respones are appreciated...
    thnx

    Finally myself found the solution...
    and this is the solution,read it.
    http://en.wikipedia.org/wiki/Singleton_pattern
    http://upload.wikimedia.org/wikipedia/commons/thumb/f/fb/Singleton_UML_class_diagram.svg/2 50px-Singleton_UML_class_diagram.svg.png
    Using a singleton class we can store value without crosscutting access and promoting component architechture.We can store any number of data fields in singleton class.
    * note that: we cant create private constructors in flex
    So the solution is singleton class

  • Regarding BDC session

    Hi
    i am processing my BDC pro. in Session method.
    my requirement is i have to capture the error records into a file
    and i have to write that file on appl. server.
    how to capture the error records from error log?
    please reply

    Hai  Saritha,
    Usually if there are any errors in CALL TRANSACTION we send those records to SESSION METHOD by using below logic.
    eg:
    CALL TRANSACTION 'XK01' USING
    t_bdcdata MODE 'N' .
    IF sy-subrc 0.
    PERFORM session_bdc.
    ENDIF.
    ENDLOOP.
    IF s_flag = 'X'.
    CALL FUNCTION 'BDC_CLOSE_GROUP'.
    ENDIF.
    This is subroutine .
    FORM session_bdc .
    IF s_flag = ' '.
    CALL FUNCTION 'BDC_OPEN_GROUP'
    EXPORTING
    client = sy-mandt
    group = 'vcentric'
    holddate = filler8
    keep = 'X'
    user = sy-uname
    prog = sy-cprog.
    s_flag = 'X'.
    ENDIF.
    CALL FUNCTION 'BDC_INSERT'
    EXPORTING
    tcode = 'XK01'
    TABLES
    dynprotab = t_bdcdata.
    ENDFORM. " SESSION_BDC
    or we can send the error records on into an flat file by using the below logic.
    CALL TRANSACTION 'XK01' USING
    T_BDCDATA MODE 'N' MESSAGES INTO T_BDCMSG.
    IF SY-SUBRC 0.
    APPEND W_UPLOAD TO T_ERROR.
    ENDIF.
    CLEAR W_BDCMSG.
    READ TABLE T_BDCMSG INTO W_BDCMSG INDEX 1.
    CLEAR L_MSG.
    CALL FUNCTION 'FORMAT_MESSAGE'
    EXPORTING
    ID = W_BDCMSG-MSGID
    LANG = SY-LANGU
    NO = W_BDCMSG-MSGNR
    V1 = W_BDCMSG-MSGV1
    V2 = W_BDCMSG-MSGV2
    V3 = W_BDCMSG-MSGV3
    V4 = W_BDCMSG-MSGV4
    IMPORTING
    MSG = L_MSG
    EXCEPTIONS
    NOT_FOUND = 1
    OTHERS = 2.
    IF SY-SUBRC = 0.
    WRITE:/ W_UPLOAD-NAME1, '----', L_MSG.
    ENDIF.
    ENDLOOP.
    this is subroutine.
    FORM ERROR_RECORDS .
    CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
    FILENAME = 'C:/ERROR.TXT'
    FILETYPE = 'ASC'
    WRITE_FIELD_SEPARATOR = 'X'
    TABLES
    DATA_TAB = T_ERROR.
    ENDFORM. " ERROR_RECORDS
    Reward is useful.
    Regards.
    Eshwar.

  • Flex session management

    Hi. I've got an app that will require users to log in. How
    can the Flex part manage the JSP session? Any tutorials on this
    will be appreciated. Thanks.

    If you read this article and have your SWF file within your
    app, you shouldn't have to worry about the SessionID directly; your
    Java app will take care of that:
    http://livedocs.adobe.com/flex/3/html/help.html?content=security2_07.html
    From what I understand, if you use Basic or Forms
    authentication, if the user submits something to your JSP pages
    when s/he isn't logged on or the session has expired, the user will
    be redirected to the login page or see the popup login box in the
    browser (Basic auth.).
    Of course, if you track the SessionID in your Flex app, you
    could display a message to the user that his/her session is about
    to expire. This isn't something I'm going to worry about at this
    point; as long as unauthenticated users are kept out of the app,
    that's all I want.

Maybe you are looking for

  • Dreamweaver 8 on INtel Mac ftp problems????

    The basic setup: I have an emac, installed Dreamweaver 8 (actually the entire studio package), it works fine. I want to move our webpage to a new imac (intel). I've copied the files, installed Dreamweaver 8, done the set up for the site. The problem

  • Connecting to FTP using a Mac

    I can connect fine with my PC and make edits to sites. When I try to connect with Mac it gives me an FTP error. I read it might have to do with MTU or ISP settings? Not sure where I find those or how i fix this. Thanks!

  • HT1688 I'm trying to activate my Touch ID.

    I've followed the directions AT&T provided me when I bought my 5S. They read as follows: Touch Setting General Touch ID & Passcode Touch ID At this point nothing happens.  The Touch ID only shows an arrow pointing to the right. Do I need to activate

  • My inbox has disappeared - I still have emails in all my other folders, but emails only frm midnight last night in inbox. How can I get my emails back

    Yesterday evening Norton ran a scan and found a threat, not saying it was Mozilla Thunderbird I ran it. Following that all my inbox emails had disappeared. All other emails are still there, including trash and folders. I have recd emails in inbox fro

  • Tcode for SAP report??

    Dear All, Can you pls tellme the transaction code to see selective reports. I know that SAP1 shows all the reports. However I am seeking for TCODE that can give us option to see our selected/desired report. for example: I want to see report RHRLAT0.