San: I'm having the same problem, but in only one of the server environments
I'm testing, so I'm thinking it is the server environment: When I run with
Windows 98 as the server & Apache + Jrun then Netscape (only) has the
problem. Works fine with IE in that environment, and works fine with
Netscape if I'm using Linux & ServletRunner (the Sun test servlet engine
from JSDK2.0). I'm trying combinations to see which piece is causing the
problem - what is your environment?
Mike N.
JavaCorporate Ltd.
http://www.javacorporate.com
-----Original Message-----
From: SAN [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, May 11, 1999 8:13 AM
To: [EMAIL PROTECTED]
Subject: Re [2] : SESSIONS - COOKIES
Yes, I am using exactly these methods, and isNew() to ckeck if the session
is
new, and the session IS NOT new, but its ID isn't the same.
Sam Rose wrote:
> How are you accessing the sessions??
>
> I mean are you using the session tracking API???
>
> HttpSession session=req.getSession(true);
>
> Also to put values into the session use this,
>
> session.putValue("login.password", password);
>
> And to get the values:-
>
> String passwd = (String)session.getValue("login.password");
>
> Or something to that effect.
>
> -----Original Message-----
> From: SAN [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, May 11, 1999 10:57 AM
> To: [EMAIL PROTECTED]
> Subject: SESSIONS - COOKIES
>
> Hello, thank you for your comments about connection pool. The pool class
> was in the same directory as servlets. It works now.
>
> My new problem are sessions.
> I make a typical user management. A root page which calls a servlets
> which sets a new session, and stores some user ID. Than each subsequent
> servlet verifies the session.
> The first servlets sets the session, but the others cannot get values.
> They are null. The session is not new, but I print the session object,
> and the first created is different than the others.
> After creating the session (in the main servlet) I "sendRedirect" a
> page. Maybe the session is missed there?
> I get the session object BEFORE setting the header and getting the
> writer, as sun servlets tutorial recommends.
> These servlets worked before, but I am making some changes. I have no
> idea if any change is related with this.
>
>
___________________________________________________________________________
> 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
>
>
___________________________________________________________________________
> 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
___________________________________________________________________________
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
___________________________________________________________________________
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