You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Darrel Davis <da...@davisware.net> on 2000/06/01 23:10:25 UTC

Can't get session id in URL with encodeURL

If I create a session and create some links, passing
them through enclodeURL, I am unable to pass session
information between pages with cookies turned off.

The documentation says that if the server determines
that the browser won't accept cookies, it puts
the sessionid in the URL.  It does not on my system;
I just lose the session.

Anyone successful with encodeURL?

This is Tomcat 3.1 Final/Apache 1.3.9 on Linux.

-darrel

-- 
==========================================
Darrel Davis      darreld@audiosonix.com
AudioSonix, Inc	  darrel@davisware.net
==========================================

Re: Can't get session id in URL with encodeURL

Posted by ALEXANDROS KOTSIRAS <AL...@prodigy.net>.
Unfortunatelly URLEncoding with cookies disabled does not wotk in Tomcat.
I have the same problem.

----- Original Message -----
From: Darrel Davis <da...@davisware.net>
To: <to...@jakarta.apache.org>
Sent: Thursday, June 01, 2000 5:10 PM
Subject: Can't get session id in URL with encodeURL


> If I create a session and create some links, passing
> them through enclodeURL, I am unable to pass session
> information between pages with cookies turned off.
>
> The documentation says that if the server determines
> that the browser won't accept cookies, it puts
> the sessionid in the URL.  It does not on my system;
> I just lose the session.
>
> Anyone successful with encodeURL?
>
> This is Tomcat 3.1 Final/Apache 1.3.9 on Linux.
>
> -darrel
>
> --
> ==========================================
> Darrel Davis      darreld@audiosonix.com
> AudioSonix, Inc   darrel@davisware.net
> ==========================================
>
> --------------------------------------------------------------------------
> To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commmands, email: tomcat-user-help@jakarta.apache.org
>


Re: Can't get session id in URL with encodeURL

Posted by "Craig R. McClanahan" <Cr...@eng.sun.com>.
Jason Rumney wrote:

> Darrel Davis <da...@davisware.net> writes:
>
> > If I create a session and create some links, passing
> > them through enclodeURL, I am unable to pass session
> > information between pages with cookies turned off.
> >
> > The documentation says that if the server determines
> > that the browser won't accept cookies, it puts
> > the sessionid in the URL.  It does not on my system;
> > I just lose the session.
> >
> > Anyone successful with encodeURL?
> >
> > This is Tomcat 3.1 Final/Apache 1.3.9 on Linux.
>
> Does it work with Tomcat standalone (port 8080 in the default configuration)?
>
> I have session tracking working without cookies. I had to add the
> following configuration to Apache's httpd.conf to get it working
> through Apache though:
>
>    <IfModule mod_rewrite.c>
>       RewriteEngine On
>
>       # Force URLs with a jsessionid to go to Tomcat. Necessary because
>       # Apache doesn't recognise that the semi-colon is special.
>       RewriteRule       ^(/.*;jsessionid=.*)$   $1 [T=jserv-servlet]
>    </IfModule>
>

Thanks Jason!  I have added this bit of wisdom to the Tomcat FAQ-O-MATIC at
<http://jakarta.apache.org>.  Search for the term "URL rewriting" to find this
answer.

Everyone who has answers to common questions like this is encouraged to add them
to the FAQ-O-MATIC system so that our hard-won knowledge can be shared.

> --
> Jason Rumney <jr...@ipo.att.com>
> AT&T Labs (Redditch, UK)

Craig McClanahan





Re: Can't get session id in URL with encodeURL

Posted by Jason Rumney <jr...@ipo.att.com>.
Darrel Davis <da...@davisware.net> writes:

> If I create a session and create some links, passing
> them through enclodeURL, I am unable to pass session
> information between pages with cookies turned off.
> 
> The documentation says that if the server determines
> that the browser won't accept cookies, it puts
> the sessionid in the URL.  It does not on my system;
> I just lose the session.
> 
> Anyone successful with encodeURL?
> 
> This is Tomcat 3.1 Final/Apache 1.3.9 on Linux.

Does it work with Tomcat standalone (port 8080 in the default configuration)?

I have session tracking working without cookies. I had to add the
following configuration to Apache's httpd.conf to get it working
through Apache though:

   <IfModule mod_rewrite.c>
      RewriteEngine On

      # Force URLs with a jsessionid to go to Tomcat. Necessary because
      # Apache doesn't recognise that the semi-colon is special.
      RewriteRule	^(/.*;jsessionid=.*)$	$1 [T=jserv-servlet]
   </IfModule>


-- 
Jason Rumney <jr...@ipo.att.com>
AT&T Labs (Redditch, UK)


RE: Can't get session id in URL with encodeURL

Posted by Jeff Rhines <jr...@email.com>.
Darrel,

It's broke.  A possible (untested) work-around is to build the link
yourself, giving jsessionid as a parameter to the servlet.  There is another
workaround at http://www.jguru.com/jguru/faq/view.jsp?EID=53251 that has
worked for someone (one would assume since it is posted there), but not for
me.

If anyone finds a fix or patch for this, it'd be great if they posted it to
the list.

Regards,
Jeff

-----Original Message-----
From: darreld@elwood.cais.net [mailto:darreld@elwood.cais.net]On Behalf
Of Darrel Davis
Sent: Thursday, June 01, 2000 4:10 PM
To: tomcat-user@jakarta.apache.org
Subject: Can't get session id in URL with encodeURL


If I create a session and create some links, passing
them through enclodeURL, I am unable to pass session
information between pages with cookies turned off.

The documentation says that if the server determines
that the browser won't accept cookies, it puts
the sessionid in the URL.  It does not on my system;
I just lose the session.

Anyone successful with encodeURL?

This is Tomcat 3.1 Final/Apache 1.3.9 on Linux.

-darrel

--
==========================================
Darrel Davis      darreld@audiosonix.com
AudioSonix, Inc	  darrel@davisware.net
==========================================

--------------------------------------------------------------------------
To unsubscribe, email: tomcat-user-unsubscribe@jakarta.apache.org
For additional commmands, email: tomcat-user-help@jakarta.apache.org