Win a copy of Grokking Bitcoin this week in the Cloud/Virtualization forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Liutauras Vilda
  • Bear Bibeault
  • Tim Cooke
  • Junilu Lacar
  • Paul Clapham
  • Devaka Cooray
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Frits Walraven
  • Carey Brown
  • salvin francis
  • Claude Moore

Session problem  RSS feed

Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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');
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
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.
maha anna
Ranch Hand
Posts: 4702
Java 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"
Is that a spider in your hair? Here, threaten it with this tiny ad:
Create Edit Print & Convert PDF Using Free API with Java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!