• 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 ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Devaka Cooray
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Knute Snortum
  • Junilu Lacar
  • paul wheaton
Saloon Keepers:
  • Ganesh Patekar
  • Frits Walraven
  • Tim Moores
  • Ron McLeod
  • Carey Brown
Bartenders:
  • Stephan van Hulst
  • salvin francis
  • Tim Holloway

Session problem  RSS feed

 
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
 
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
 
Ranch Hand
Posts: 4702
9
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"
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!