From: Nick S. <NSa...@ms...> - 2004-05-28 09:41:39
|
Hi Tim have you tried this on a variety of browsers? If your browser is rejecting cookies and you're not url encoding your links so that the server can use url rewriting then this would give the impression of a disappearing session. We have found this to be a problem with IIS fronting Tomcat and have to remember to url encode all the links. Nick >>> ti...@pa... 05/26/04 04:53PM >>> Hi, Been stuck for a little while on a disappearing session variable In one servlet (derived from a copy of WMServlet) I put my User object in the session something like this: void store(WebContext c, User myUser) { HttpSession s = c.getSession(); c.setAttribute("u", myUser); System.err.println(s.getAttribute("u")); } which prints out a valid User object However in the next servlet called HttpSession s = c.getSession(); System.err.println(s.getAttribute("u")); prints null Is this likely to be a Tomcat5 configuration issue or a webmacro issue, I am (fairly) sure now that it is not in my code. yours timp ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click _______________________________________________ Webmacro-user mailing list Web...@li... https://lists.sourceforge.net/lists/listinfo/webmacro-user This Message has been Checked at MSXI for all known Viruses. You open this at your own risk. Please make sure all replies are also virus free. Also we do not accept or send Attachments of the type .exe, .vbs, scr, or .bat due to the virus risk they can contain. These types of attachments will be stripped from the message. MSXI |