• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Paul Clapham
  • Ron McLeod
Sheriffs:
  • Jeanne Boyarsky
  • Liutauras Vilda
Saloon Keepers:
  • Tim Holloway
  • Carey Brown
  • Roland Mueller
  • Piet Souris
Bartenders:

null session attribute in iPlanet

 
Ranch Hand
Posts: 46
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Chris,
Could you please drop the "11" from your last name to make it conform to our naming policy.
Thanks.
 
reply
    Bookmark Topic Watch Topic
  • New Topic