vtr, You wrote: >The JSP and Servlet are in different context in a TOMCAT 1.4.1. webserver. This is your problem. Sessions are maintained on a context level by the app server. Only JSPs and Servlets within the same context can access the same session instance.
Rgds, Richard > -----Original Message----- > From: vtr [SMTP:[EMAIL PROTECTED] > Sent: Thursday, June 19, 2003 11:19 PM > To: [EMAIL PROTECTED] > Subject: Session not accessible > > Hi all, > > I have a login JSP where in I set the session variable when I try to > access the session from another report > servlet the session variable is not accessible and also the getSession > method returns different values > every time . I have tried using true and flase in the getSession.The JSP > and Servlet are in different > context in a TOMCAT 1.4.1. webserver. > > Please help with your comments... > > V.T.R.Ravi Kumar, Engg.(CCX), BHEL > Phone 01334-285260(O) > 01334-226121(R) > > ========================================================================== > To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff > JSP-INTEREST". > For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST > DIGEST". > > Some relevant archives, FAQs and Forums on JSPs can be found at: > > http://java.sun.com/products/jsp > http://archives.java.sun.com/jsp-interest.html > http://forums.java.sun.com > http://www.jspinsider.com =========================================================================== To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST". For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST". Some relevant archives, FAQs and Forums on JSPs can be found at: http://java.sun.com/products/jsp http://archives.java.sun.com/jsp-interest.html http://forums.java.sun.com http://www.jspinsider.com