Skip to Content
author's profile photo
Former Member

How set a SESSION variable?

How set a SESSION variable?

There is a standard object where could do this?

Thx in advance Roberto.

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • author's profile photo
    Former Member
    Posted on Aug 31, 2005 at 10:21 AM

    The Web Dynpro programming model abstracts away from those HTTP specific notions like session, response, request etc.

    What kind of data do you want to store in the "session", what is the scope and lifecycle of these data?

    Armin

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      >The Web Dynpro programming model abstracts away from >those HTTP specific notions like session, response, >request etc.

      >

      >What kind of data do you want to store in the "session", >what is the scope and lifecycle of these data?

      >

      >Armin

      Nothing of special.

      A portal user could set for it's session what language use during it's navigation.

      A want mantain this information for all duration.

      It's only a string. And each WebDynpro must display all messagge with this language rule, that must remain permanent for the duration of a user portal navigation.

      Thx in advance.

      Message was edited by: giovanni angerame

  • author's profile photo
    Former Member
    Posted on Aug 31, 2005 at 11:06 AM

    Hi,

    I think you cant use this SESSION standard object as such, if u want to maintain any data it should be maintained in context only.

    If you need to work with that standard object you should go for PDK - EP perspective, and you Need portal server for that.

    Regards,

    Sirisha.R.S

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      >Hi,

      >

      >I think you cant use this SESSION standard object as such, if u want to maintain any data it should be maintained in context only.

      >

      >If you need to work with that standard object you should go for PDK - EP perspective, and you Need portal server for that.

      Are you saying me that i can set a VALUE node ACTIVE/PERMANT for all duration of a user logged?

      Thx 😊

      Message was edited by: giovanni angerame

  • author's profile photo
    Former Member
    Posted on Aug 31, 2005 at 01:39 PM

    In your component controller (or for that matter any custom controller), you can declare member variables (as in any normal Java class). These member variables are "alive" and accessible for the entire duration of the user session (i.e. as long as the application is running for a particular user).

    Declare member variables in the

    //@@begin others

    section of the generated implementation code.

    You can also store information in the Context by creating and filling context nodes/attributes, and the data will remain for the lifetime of the application.

    In short, whether you choose to store data in the Context, or as member variables of a controller, the data will be available for the entire life of the application (similar to an HTTP session).

    Walter

    Add comment
    10|10000 characters needed characters exceeded