Basically, when I go to new pages, the HttpSession session =I have the exact same problem and would like to ask some questions.
req.getSession(false) always returns null; using (true) means I get a
new session ID on every page.
here is the code at the top of all my doPost(req, res) methods:res.setContentType("text/html");
ServletOutputStream outPut = res.getOutputStream();
HttpSession session = req.getSession(true);
Note that IE 5 seems to be able to keep the session alive, but Netscape 4.51
cannot! And I do *not* have Netscape cookies turned off....
should ' session.putValue("login.target", "target address"):' be put in the Set-Cookie string with JServSessionId and path (got from the logs). It doesn't seem to be but works ok with IE5.
[Note I am trying to do Jason Hunters examples]
Tried Craig's suggestion of shifting the setContentType without success (on Netscape).
Whats the difference between using PrintWriter and ServletOutputStream ?
John
-- ============================================================================== "There are no kernel hackers in Ireland. They spend all their time in the pub" Alan Cox ==============================================================================