Hi,

I have a BaseServlet which has a method called getHttpSession, as below:
HttpSession getHttpSession(HttpRequest request, HttpResponse response)
{
    HttpSession session = request.getSession(false);
    if ( session==null)
    {
        System.out.println("session = null");
    }
    else
    {
        .....................
    }
    return session;
}

and another servlet called ViewFilesServlet which extend from BaseServlet,
this method was invoked in ViewFilesServlet .

When I run my application, first it invokes an AuthenticateServlet, which
create a session for valid user, then the valid user can invoke the
ViewFilesServlet:

in IE, sometimes I can get correct session object, sometimes I get
session=null, and I also get an error message come from Dr.Wartson said "the
instruction in address xxxxxxxxxx is not correct" or something like that.

in Netscape, I never get session=null.

Does anybody know how it comes like this?

Thanks,

Becky

___________________________________________________________________________
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