DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25676>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=25676 Why the session is invalidaed? [EMAIL PROTECTED] changed: What |Removed |Added ---------------------------------------------------------------------------- Status|RESOLVED |REOPENED Resolution|INVALID | ------- Additional Comments From [EMAIL PROTECTED] 2003-12-22 02:31 ------- Thank you for your reply!:) I'm sorry for breaking in on you,but the exception is throwed again! I did one test again today: public class OneTest extends HttpServlet { private ServletConfig config = null; public void init(ServletConfig config) throws ServletException { this.config = config; } protected void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { request.getSession().setAttribute("myname","agile"); ServletContext sc = this.config.getServletContext().getContext ("/second"); RequestDispatcher rd = sc.getRequestDispatcher("/twotest"); rd.forward(request,response); } } public class TwoServlet extends HttpServlet { private ServletConfig config = null; public void init(ServletConfig config) throws ServletException { this.config = config; } protected void doGet(HttpServletRequest request,HttpServletResponse response) throws ServletException, IOException { System.out.println("testServlet:"+request.getSession().getId()); HttpSession session = request.getSession(); //here,it always throw Exception:"session is invalidated already" String myname = (String)session.getAttribute("myname"); response.getWriter().println("myname:"+myname); } } It works fine for you? Why not for me? Thanks! --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]