|
| 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
|
|