JSP: Different Session ID

D

Don Alexander

Greetings:

I've been fooling around with a Session ID issues for a couple of days and
decided that it's time to ask for help. I have the following running on my
server:
Linux Redhat 9
apache_1.3.29
jakarta-tomcat 5
jakarta-tomcat-connectors-jk2-2.0.4-src

I'm attempting to create a user login page that redirects to another page on
success; However, I noticed that the Session ID is not being passed. After
further troubleshooting, I noticed that the Session ID is passed only when
the tilde in the URL is not hex encoded. For example, the following will
work when redirected from the user logon page:
http://192.168.100.105:8080/~testuser/test/index.jsp

But this will retrieve a different Session ID:
http://192.168.100.105:8080/~testuser/test/index.jsp

For some reason the webserver is not caching anyting starting with %7e but
it is when manually using the tilde (~). My user logon page is redirecting
by using:
response.sendRedirect(response.encodeRedirectUrl(MM_redirectLogin));

When I use IE6 or Netscape7 and access the user logon screen at
http://192.168.100.105:8080/~testuser/test/index.jsp, it attempts to
redirect me however the tilde in the URL is hex encoded to %7e then
redirected page will receive a new Session ID instead of keeping the ID from
the user logon page.

Any help would greatly be appreciated.

Regards,
Don
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,787
Messages
2,569,627
Members
45,328
Latest member
66Teonna9

Latest Threads

Top