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

Similar Messages

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

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

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

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

  • 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

  • Flex Session Handling

    Hoe to acess the the session variable in actionscript?

    Yes..You are right.
    Session variables that lives on the server is accessible in
    this way in .java file -
    FlexSession flexSession = FlexContext.getFlexSession();
    String username =
    flexSession.getAttribute("userName").toString();
    But , what if I want to access this session variable in my
    actionscript file.
    I tried to import flex.messaging.FlexSession in .as file but
    it does not allow me to do so.

  • FLEX & Session Variables: a BUG?.

    TARGET:
    Calling a Coldfusion Component with Remote Object to achieve
    a boolean value as result.
    If I declare the session variable inside the CF Function it
    works.
    If I declare the session variable before the CF Function was
    called it fails.
    See this test:
    A Coldfusion page (index.cfm) that defines a sesssion variable
    to start with:
    <!--- SHOW SESSION VARIABLES AND LOAD FLEX SWF IF "sesVAR"
    IS DEFINED, OTHERWISE DEFINE sesVar FIRST --->
    <cfif isDefined('session.sesVar')>
    <cfinclude template="index.html">
    <cfelse>
    <cfset session.sesVAR = "true">
    <cfinclude template="index.html">
    </cfif>
    COLDFUSION COMPONENT (CFComp.cfc):
    <!--- CHECK SESSION VARIABLE AND RETURN "TRUE" IF EXISTS
    --->
    <cffunction name="returnBoolean" access="public"
    returntype="boolean">
    <!--- UNCOMMENT FOLLOWING LINE AND EVERYTHING WORKS FINE
    --->
    <!---<cfset session.sesVar = 'yes'>--->
    <cfif isDefined('session.sesVar')>
    <cfset resultVal = TRUE>
    <cfelse>
    <cfset resultVal = FALSE>
    </cfif>
    <cfreturn resultVal>
    </cffunction>
    FLEX:

    "drongo79" wrote:
    > Oh well sorted it out myself anyway.
    Do you want to share, please?

Maybe you are looking for