Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Session problem

 
naga bush
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
HI.,
I am using HttpSession class for session tracking.
The sessions are working fine in windows platform in javawebserver.
HttpSession session = req.getSession(true);
session.putValue("username", "name');
session.getValue("username");
When the same code is using in solaris machine with iplanet web server(here servlet2.2 API) I used setAttribute,getAttribute for the session.
Now the iplanet web server is residing in solaris. The client is windows.
The main problem is we are tested the code in 10 systems).Out of 10 systems 3 or 4 working fine with sessions. In the remaining systems the session objects are null.
We are using the ie5 browser for all the systems.
Please help anybody if u faced this problem.
Thanks in advance
 
maha anna
Ranch Hand
Posts: 1467
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What do you mean by 'Client is windows' ? The requests are from a browser right?
Generally sessions are maintained by cookies or url-rewriting. Do you think, your session management depends soley on client browser's cookies. In such case, if the browser doesn't support cookies, session management will be gone!
I faced the problem same as yours once and changed all calls to the web appln are made as url-rewriting and finally got it working.
regds
maha anna
 
Randall Twede
Ranch Hand
Posts: 4481
3
Java Python Scala
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
maha is probably right. Some of your clients probably arent set to accept cookies, and that is probably how you are managing your sessions. That is how I manage sessions right now since url rewriting seems more complicated. I warn the user on the first page that their browser must accept cookies. I plan to change it "someday"
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic