I created the context r01 putting a folder in config folder of a servlet
engine.
The servlet of my application is putted on servlets folder.
The problem is that i cannot make use of session !!
In a servlet, called A, i create the session in the doPost method

   public void doPost(HttpServletRequest req, HttpServletResponse res)
   throws ServletException, IOException
 {
   HttpSession session=null;
   session=req.getSession(true);
   ...
 }

in an other servlet, called B i try to refer to the same session:

   public void doPost(HttpServletRequest req, HttpServletResponse res)
   throws ServletException, IOException
 {
   HttpSession session=null;
   if ((session=req.getSession(false))==null)
           System.out.println("user not logged !!");
 }

the result is that in the 2nd servlet session=null !!!
I don't shared session !!! Why ?

Thanks a lot !!!

---
'NzistiCaResisti

___________________________________________________________________________
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff SERVLET-INTEREST".

Archives: http://archives.java.sun.com/archives/servlet-interest.html
Resources: http://java.sun.com/products/servlet/external-resources.html
LISTSERV Help: http://www.lsoft.com/manuals/user/user.html

Reply via email to