WebSphere Portal Server - Session data not retrieved

This is Interesting: Free IT Magazines  
Home > Archive > WebSphere Portal Server > March 2005 > Session data not retrieved





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Session data not retrieved

2005-03-31, 3:01 am

Hi

I have extended the Login functionality of WPS5 and in the doAuthenticate method of class LoginUserAuth, i am adding some data to the session using the following code :

aRunData.getRequest().getSession().setAttribute("ADMINHANDLER",adminHandler);

This works fine and i am able to retrieve the data from the session in the LogoutUserAuth class also. The code used to get the data is :

AdminHandler adminHandler = (AdminHandler) aRunData.getRequest().getSession().getAttribute("ADMINHANDLER");

Now the problem is, after login when i try to get the same object from session in the PumaControllerHTML (This class is the controller class for Manage Users and Groups portlet) i get the value as null. Though the session id is the same in all the 3 class
es (LoginUserAuth, LogoutUserAuth, PumaControllerHTML). I also checked for the list of attributes in the session, but there is nothing even matching that string in the session.

So where is the value gone in PumaControllerHTML and how the value is again retrieved in LogoutUserAuth??

I used the following code in PumaControllerHTML :

AdminHandler adminHandler = (AdminHandler) aRunData.getRequest().getSession().getAttribute("ADMINHANDLER");

Regards
Amit Jain
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com