Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » Apache Tomcat »

Session and URL encoding of tilde

Daniele Varacca

2007-03-02


Hi there,
   my problem is as follows: I am under LINUX. When I use
explicitly the symbol "~" in the URL, tomcat keeps track correctly of
the session. When the tilde is encoded as "%7e" tomcat forgets the
session. And I cannot avoid this, as the sendRedirect method encodes
the tilde by default. Any ideas?

Daniele

Now for the gory details:

There are multiple users in the system.
For every user "login" there is a webapp
"/login/public_html/foobar", and I have set tomcat to
access it when requested at "http://localhost/~login/foobar"
It works fine as long as the sendRedirect method is not used.
But once sendRedirect is called, the URL becomes
"http://localhost/%7elogin/foobar" and session tracking no longer works.
I use firefox or iceweasel, with cookies enabled.

---------------------------------------------------------------------
To start a new topic, e-mail: users@(protected)
To unsubscribe, e-mail: users-unsubscribe@(protected)
For additional commands, e-mail: users-help@(protected)

©2008 junlu.com - Jax Systems, LLC, U.S.A.