03-31-05 08:01 AM
Hi
I have extended the Login functionality of WPS5 and in the doAuthenticate me
thod 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 L
ogoutUserAuth 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 sessi
on 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 t
he list of attributes in the session, but there is nothing even matching tha
t 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
[ Post a follow-up to this message ]
|