Can flex application will support the session objects

Ask a Question related to Macromedia Flex General Discussion, Design and Development.

  1. #1

    Default Can flex application will support the session objects

    Hi,

    I created my own flex application, i have not used any jsp over there and i
    want to create session and maintain in that only .

    Will that be possible in flex application without using jsp.

    Thanks in Advance.

    Gokulanand Guest

  2. Similar Questions and Discussions

    1. Remote Objects EOF Errors with Flex 3 application
      We have recently ran into an issue with an application which ran fine in Flex 2 but now in Flex 3 (or at least the coincidencal timing of using...
    2. Support document for Migration of application fro flex 2o flex 3
      Support document for Migration of application fro flex 2 o flex 3
    3. How to load Flex 2.0 components on Flex 1.5 application
      Hello, I am currently working on an Flex 1.5 application and my client wants to import 2.0 components into it. Can we achieve that? if so how is...
    4. Hebrew support in Flex ..?!?!
      Hi, Does Flex support right to left languages like Hebrew ?? and if it does, how can I implement it ?? Thanks Joseph.K
    5. Flex Value Objects
      Hi all, Does any flex guru know if I can map a client side actionscript value object to a server side java interface? Kind thanks!!
  3. #2

    Default Re: Can flex application will support the sessionobjects

    Yes, often when people want to use a server session, it is because they have
    not fully embraced the Flex paradigm.

    Sure, some very advanced application architectures could reasonably require
    using a server session.

    But for many apps servr session is not needed. The common use of a server
    session is to maintain "state" for a particular user between calls from an html
    page. Since html is "stateless", when you want to store data from one call to
    the next, you have to store it on the server, and access it later using the
    session. In Flex, the client application itself keeps the state, and NEVER
    needs to refresh the ui by calling an url. The only calls to the server are
    for data. (BTW, 'AJAX' is another approach to keeping state on the client ).

    Shared Objects take this a step further, by retaining data between client Flex
    app starts and stops. They are kind of like "cookies", but can store much more
    data.

    So be sure you really need server-side sessions. If you still do, there are
    ways to access it, but it requires a server-side application, like JSP, of
    course.

    Tracy

    ntsiii Guest

  4. #3

    Default Re: Can flex application will support the sessionobjects

    hi,

    Thank u guy's

    now i had new prob with tomcat server

    i am adding the mxml tags in exciting jsp file

    i declared <%@ taglib uri="FlexTagLib" prefix="mm" %> at the starting

    and in WEB-INF also mentioned and flex bootstrab .jar also added enenthugh i
    am getting the error

    org.apache.jasper.JasperException: File "/FlexTagLib" not found

    can anybody help me

    thanks in advance

    Gokulanand Guest

  5. #4

    Default Re: Can flex application will support the sessionobjects

    Hi.

    I am one of the newbies trying to get the flex approach into my head. I see
    this is an old thread, but relavant to me so I'll reply here.

    If the users data is stored on the client, then is it accessible to the user
    directly? Is the repository encrypted?

    The reason I ask is that even a minor app you would have a differentiation of
    user roles - some with more power than others. Assuming that there is one
    version of the app, then it must present a different UI users holding each
    role...in which case if the user can access the role key offline then restart
    the app it is a bad thing.

    J.



    TKJames Guest

  6. #5

    Default Re: Can flex application will support the sessionobjects

    Hi.

    I am one of the newbies trying to get the flex approach into my head. I see
    this is an old thread, but relavant to me so I'll reply here.

    If the users data is stored on the client, then is it accessible to the user
    directly? Is the repository encrypted?

    The reason I ask is that even a minor app you would have a differentiation of
    user roles - some with more power than others. Assuming that there is one
    version of the app, then it must present a different UI users holding each
    role...in which case if the user can access the role key offline then restart
    the app it is a bad thing.

    J.



    TKJames Guest

  7. #6

    Default Re: Can flex application will support the sessionobjects

    It is not that "user data is stored on the client", it is that "state" CAN be
    stored/retained on the client. Nothig is automatically stored on the client,
    you must programmatically cause it to happen. Instead of having the server
    assign a session id, then pass it to the client, who pases it back to the
    server on the next refresh, you could simply keep the necessary database
    identity key on the client in a MEMORY variable. You do not need to save it
    to a local respository(called a Local Shared Object) although you can if you
    want. The Local Shared Object is not encrypted.

    If the database identity keys are stored in the player in memory, when a user
    does refresh, that info will be lost and not available to someone else on the
    machine. That new person would have to log on again, to get whatever rolses
    they were entitled.

    Do you follow?

    Tracy

    ntsiii Guest

  8. #7

    Default Re: Can flex application will support the sessionobjects

    Tracy,

    Thanks for the response.

    Thinking about it, the memory variable is no worse than the session stored in
    cookies in ASP, or in the page by HTML session management approaches, although
    one would expect that someone with a memory viewing tool might be able to get
    and set the memory information.

    So, is there any built-in function to encrypt critical memory-resident data?

    Also, does Flex introduce any security-specific enhancements over
    web-browsers? This could vitally important in terms of the scope of
    applications that could benefit from Flex.

    J.



    TKJames Guest

  9. #8

    Default Re: Can flex application will support the sessionobjects

    No, there is no built in functionality for encryption.

    Flex runs within the Flash Player, which has very strict security
    restrictions. Of course, the security is focused on preventing malicious code
    in the player itself from accessing a client's resources. It is not focused on
    protecting the Flash Player from an attack from a client.

    Tracy

    ntsiii Guest

  10. #9

    Default Re: Can flex application will support the sessionobjects

    Tracy

    Thanks for the prompt and useful response. I have some other questions on app serving but I'll open a new topic for those.

    J.
    TKJames Guest

Posting Permissions

  • You may not post new threads
  • You may post replies
  • You may not post attachments
  • You may not edit your posts

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139