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
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
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"