This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal



Aug 4, 2011, 12:53 PM
3 Posts

managed bean not cleared after logout

  • Category: Managed Beans in NSF
  • Platform: All
  • Release: 8.5.1
  • Role: Developer
  • Tags:
  • Replies: 1
I have created a managed bean which contains user information; this is set to be stored in the session scope.
 
If you logout and log back in as a new user the bean still contains the previous user information therefore i assume the sessionscope is not cleared when the logout occurs.
 
This bean is used across a number of databases so therefore there are multilple instances of this bean in each of the databases sessionscopes.
Is there a way to clear the all sessionscopes across multiple dbs for the current user?
Aug 5, 2011, 8:00 AM
261 Posts
Re: managed bean not cleared after logout
Hi,
 
You're right: the sessionScope isn't cleared when a user logs out. I've worked around this by storing the current user's username in the sessionScope and checking if the current user has changed. If it has, the sessionScope is cleared and refilled.
 
Mark

This forum is closed to new posts and responses. Individual names altered for privacy purposes. The information contained in this website is provided for informational purposes only and should not be construed as a forum for customer support requests. Any customer support requests should be directed to the official HCL customer support channels below:

HCL Software Customer Support Portal for U.S. Federal Government clients
HCL Software Customer Support Portal