This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Other Java Products and Servers and the fly likes null session attribute in iPlanet Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Products » Other Java Products and Servers
Bookmark "null session attribute in iPlanet " Watch "null session attribute in iPlanet " New topic
Author

null session attribute in iPlanet

Chris Garrison
Ranch Hand

Joined: Jun 13, 2002
Posts: 44
I have the following code in my login.jsp:
session.setAttribute("myAttribute", "false");
When I login for the first time, this works fine BUT when the user selects to logout of the app, then log back in (clicking a link to go back to login screen) the session attribute "myAttribute" is null (once the user has logged back in. ??? This makes no sense b/c I'm hardcoding the attribute in the login.jsp. When he/she logs in, this attribute should be there right!?
The logout action has the following code:
HttpSession session = request.getSession(false);
if (session != null) {
session.invalidate();
}
I don't understand what happens to the attribute?
Also interesting - this works just fine on Tomcat - it's only iPlanet that is giving me the problem.


May the force be with you, always.
Lasse Koskela
author
Sheriff

Joined: Jan 23, 2002
Posts: 11962
    
    5
Chris,
Could you please drop the "11" from your last name to make it conform to our naming policy.
Thanks.


Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: null session attribute in iPlanet
 
Similar Threads
invalidate session object in struts2
login and status error 400
need help implementing logout
return a specific session attribute from HttpSessionListener
call an action from another module in getRequestDispatcher()?