Session data not retrieved
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > WebSphere > WebSphere Portal Server > Session data not retrieved




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

    Session data not retrieved  


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
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 ]



    Sponsored Links  




 





   All times are GMT. The time now is 11:27 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register