Hi, 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. -- --------------------------------- Emmanuel JEGOU mailto:[EMAIL PROTECTED] ICQ# 43987579 --------------------------------- Naonet => Internet - Intranet http://www.naonet.fr --------------------------------- ___________________________________________________________________________ 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
