This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Problems with lost sessions

 
Ricardo Alvarado
Greenhorn
Posts: 19
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have this problem...

Lets say we have 3 jsp pages (or servlets)....

A ----> B ----> C---->

When I pass session variables from A to B, the session persistence seems to be ok, I'm getting all the values and everything looks great.
When I pass these values from B to C it seems some of these
session variables are missing..

I'm working with WebSphere and the weird thing it is working in a specific server and in other it is not working.

I think it could probably be a session persistence configuration issue but I can't find the source of this problem...

Do someone know, or maybe have experience this kind of problem?

Thank you
 
Adeel Ansari
Ranch Hand
Posts: 2874
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
couldn't understand. your passing A to B and then B to C. just place it in your session. and then get it from any of your jsp or servlet. isn't it.

request.getSession().setAttribute("attribute");
request.getSession().getAttribute("attribute");

if your problem is not this please. send a snippet of your relevent code. like how you are setting and gettin attribute.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic