Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Need weblogic specific classes to get reference to HttpSession object

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
I have this requirement, an admin user should be able to view the list of
all users who have logged into the applicatoin. The admin can forcefully
logout any user. To do this I have the userID (loginID) stored in the
database when the users login.
Now my problem is how do i get the reference to the users session object
using his loginID.
One of the solution is storing the sessionID along with the loginID in the
database.
but we can see that the HttpSessionContext is now depricatated
As of Java(tm) Servlet API 2.1 for security reasons, with no
replacement. This interface will be removed in a future version of this API.
Second solution is maintaining login users list in memory. On a cluster replicating this list is a problem.
Now how do I get the reference to the user session object inorder to
invalidate it. So i need the weblogic api which can get me the reference to the user's HttpSession object.
regards
sathwik
 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi Sathwik,
You can use our Coherence*Web HTTP session managment module to "un deprecate" the HttpSessionContext. Further, you could use Coherence to maintain your list of logged in users in memory in a concurrent and fully clustered manner.
reply
    Bookmark Topic Watch Topic
  • New Topic