however response.encodeURL() doesn't work in Tomcat (don't know why - it
just doesn't).  i've seen encodeRedirectURL() do nothing at all in cases
where it should have in both JServ and JRun.  both JServ and JRun encode
their session ID back to the resulting URL if cookies are not turned on on
the client ONLY if you use encodeURL().  Tomcat MUST have cookies turned on
on the client to maintain session, HOWEVER, i tried upgrading my copy of
JServ today to the final 1.1 release and found that it broke sessions
COMPLETELY in Tomcat (cookies or not).  had to roll back to the mod_jserv.so
that's on the jakarta site (which doesn't have EAPI enabled, btw, which
causes a warning when you try to add mod_jserv to Apache).  just thought i'd
mention it in case anybody on the Tomcat team is reading... :)
....................ron.
    -----Original Message-----
    From: Ernie V <[EMAIL PROTECTED]>
    To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
    Date: Tuesday, February 01, 2000 7:20 PM
    Subject: Re: Lost Session


    The session hasn't gone anywhere unless you invalidated it or that the
browser can't pick it up due to rejecting cookies. You must be doing
something in an incorrect manner to not be able to retrieve the session. The
other person suggested response.encodeRedirectURL(url) to have you try to
encode the session id in the url of every link on your page. This way, if
someone doesn't support cookies you can still bind their browser to the
HttpSession.
    -ernie



    "" wrote:

        Hi,
        When i use response.sendRedirect(url) I loose the session. I went
thru the
        List archives and some body suggested to use
        response.encodeRedirectURL(url) , but also didnt help. Is there any
way to
        redirect to a html page and still retain the session?
        Thanks
        -Saigeetha

___________________________________________________________________________
        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

Reply via email to