Discussions

XML & Web services: JRUN 4.0 session management

  1. JRUN 4.0 session management (1 messages)

    In JRUN 4.0, Iam trying to maintain a session object across applications running on a "default" server. But it does'nt allow me to access session name/value stored in one application from another.
    Please help me out. Thanks,
    subbu
  2. In JRUN 4.0, Iam trying to maintain a session object across applications running on a "default" server. But it does'nt allow me to access session name/value stored in one application from another.Please help me out. Thanks,subbu
    Hi Subbu,

    Session objects are per user basis and unique within a given application.Session objects in one application cannot be accessed by classes or code from other applications.Moreever session objects assigned to user B within a application cannot be accessed by user A.
    e.g - session variables are good cnadidate to store user specific information.

    Application object is per application basis and unique to that application.Data stored in a application variable cannot be accessed by other applications running in the same container.
    e.g - application variable is a good candidate to store information which may be commonly required by your web application.Say the file system path where you need to log errors or the source where your CSS resides.