Re: Apache proxy sessions

This is a discussion on Re: Apache proxy sessions within the Apache Web Server forums, part of the Web Server and Related Forums category; > Has anybody experienced problems with tomcat session/cookie tracking when > accessing their apache 2 + tomcat 4 apps through ...


Go Back   Usenet Forums > Web Server and Related Forums > Apache Web Server

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 08-16-2003
Joachim Ring
 
Posts: n/a
Default Re: Apache proxy sessions

> Has anybody experienced problems with tomcat session/cookie tracking when
> accessing their apache 2 + tomcat 4 apps through an Apache 2 instance
> configured as a proxy (with proxyreverse). Even with the most basic jsp
> page, about 4 lines just to retrieve and output the session ID, my cookies
> are not getting through.
>
> It's driving me crazy and I'm sure it's in the proxy where the problem is
> occuring because I can run the exact same JSP and track the session using
> another setup without the proxy in the middle.


first of all, a packet sniffer on the proxy box has proven invaluable
to debug things like this:

# tcpdump -s 1500 -w outside.log src host ip_of_test_client dst port
80

and

# tcpdump -s 1500 -w inside.log dst host ip_of_backend dst port 80

in two shell windows will capture traffic to & from the proxy from
your testclient & to & from proxy to backend. do a short session then
(like get startpage to have cookie set and then another click to get
it back).

after that you can do

# strings (in|out)side.log | more

to see a cleartext representation of what's going on. you could of
course use a gui sniffer like the really great ethereal instead
(ethereal has a nifty point & click follow tcp stream feature which
makes debuging easy).

and read your rfc2965!

my guess is that the proxy has a different server- or even domain name
which prevents the cookie to be delivered back by the browser...

joachim
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 04:48 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0