Hi--

Try using some thirdparty servlet engine with NES /Apache. You shouldnt be
surprised if there is some bug with NES support for servlets. They
*recommend* use of servlet engines (atleast the last time I heard) ..

_s_

>From: Emmanuel JEGOU <[EMAIL PROTECTED]>
>Reply-To: "A mailing list for discussion about Sun Microsystem's
>   JavaServlet API Technology." <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: session lost without warning
>Date: Thu, 2 Sep 1999 12:03:32 +0200
>MIME-Version: 1.0
>From [EMAIL PROTECTED] Thu Sep  2 03:05:20 1999
>Received: from mail (mail.java.sun.com [204.160.241.28])by
>mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id DAA23459;Thu, 2 Sep 1999
>03:05:24 -0700 (PDT)
>Received: from JAVA.SUN.COM by JAVA.SUN.COM (LISTSERV-TCP/IP release 1.8d)
>with          spool id 579948 for [EMAIL PROTECTED]; Thu, 2 Sep
>1999          03:04:14 -0700
>Received: from mail.naonet.fr (mail.naonet.fr [212.208.150.5]) by
>mail.java.sun.com (8.9.3+Sun/8.9.3) with ESMTP id DAA23107 for
><[EMAIL PROTECTED]>; Thu, 2 Sep 1999 03:04:11 -0700 (PDT)
>Received: from naonet.fr (spoke.naonet.fr [212.208.150.251]) by
>mail.naonet.fr          (8.9.3/8.9.3) with ESMTP id NAA28458 for
><[EMAIL PROTECTED]>; Thu, 2 Sep 1999 13:58:34 +0200
>X-Mailer: Mozilla 4.61 [en] (WinNT; I)
>X-Accept-Language: en
>Message-ID:  <[EMAIL PROTECTED]>
>Sender: "A mailing list for discussion about Sun Microsystem's Java
>      Servlet API Technology." <[EMAIL PROTECTED]>
>Organization: Naonet
>
>Hello,
>
>I use servlets and on my web pages I need authentication, so I need to
>have a session. But, I used do it with the
>httpServletRequest.getSession(false) to see if there was an existing
>session and if the result is null then I do
>httpServletRequest.getSession(true) to create a new session. The problem
>is a great one. It used to work and now it doesn't work anymore :-(. I
>didn't touch anything, so I don't know how to do !
>I tried httpServletRequest.isRequestedSessionIdValid() to see if a
>session exists and httpServletRequest.getSession(true) to create a
>session if doesn't exist but everything failed :-((((
>When I use a debugger to see where the problem come from, I can see that
>the time I look for a session, it doesn't exist and then a popup window
>came in my browser to ask me to accept the cookie. I accept, then the
>servlet is launched again and when in the servlet code I look for the
>session, it exist. Then (I have an authentication page) I valid my
>authentication and the servlet is launched again and here, the session
>doesn't exist anymore !
>
>I don't know how to do it, please help me.
>
>Thanks in advance, Manu.
>
>configuration : JSDK 2.1 running with VisualAge 2.0 ; Netscape
>enterprise Server or Apache : the result is the same !
>
>___________________________________________________________________________
>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
>

______________________________________________________
Get Your Private, Free Email at http://www.hotmail.com

___________________________________________________________________________
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