Skip to Content
author's profile photo Former Member
Former Member

User session access in WebDynpro

Hi All,

Does anybody know how can I obtain access to the user's session? Normally in standard J2EE web applications there is an object "session" and one can bind sime attributes to it.



Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2003 at 05:50 PM

    Hi Metodi,

    We also have such a mechanism, but we do not use the httpSession directly. There is a Wrapper called ClientSession that offers a Map with the same lifetime that a httpSession. The framework uses that mechanism to retrieve and store information.

    But that API not public as the usage is somehow "dangerous" and out of framework control when memory is limited. We would like to learn more about the use case so that we can offer some alternatives. If there is no other way and the use case requires it, the API can be used.



    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi Metodi,

      as fas as i know, your Web Dynpro application will be terminated gracefully, if the application is exited by session expiration and/or user logoff. This happens even if the user closes the browser window or pressing Alt+F4.

      The CSF sends a specific event to the server, which then handles the rest. The Web Dynpro runtime (indirectly) calls the wdDoExit method of the Component controller, which was the entry point of the active application and then top-down the controller hierarchy (i'm not really sure about the last point). So the wdDoExit methods of the specific controllers are the right place for you to do your clean up tasks.

      Wouldn't it be possible to bind the session specific information to the configuration context of a component for example? The ClientSession is not public, i guess, so there's no documentation.



Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.