Hi,
I'm experiencing a problem with cookies cached - probably - in Tomcat
for a couple of minutes.
I'm running a webapp into Tomcat, which also connects to an apache
proxy to embed an external page into the tomcat webapp. I need the
apache proxy to get rid of the Javascript safety problems that occur
when trying to interact with a page sourced from another domain name.
The problem: I run in the externally source page a report, setting a
few parameters. These parameters with my selected values are stored in
a cookie called "Reports". After running the report I can click on a
link to export it to excel. The asp script on the remote server will
retrieve the params values from the cookie and generate the
appropriate excel sheet. Now if after running a report I run another
one, the cookie on my browser gets correctly updated, but if after
that I try to export to excel this new report what I get from the
remote server is the same excel sheet as before. I checked the Reports
cookie on my browser and I see it's correctly updated after each
report run, but i noticed that what is sent to the remote server is
not the cookie stored in my browser, but a previous cookie, cached - i
suppose - in Tomcat, because the generated excel sheet is the same as
before, as the first report i've run. If i wait two minutes though and
click again the excel export function, the correct sheet is built. So
looks like Tomcat caches the Reports cookie for two minutes and this
overrides the browser cookie.
Another confirmation of this is that if I delete the Reports cookie
from my browser after running a report, and click on export to excel,
I still get the excel sheet, whereas after a couple of minutes the
sheet can't be built anymore and some microsoft runtime error is
generated.

I was first thinking that it could be the apache proxy to cause this,
so i tried to shut it down and up again after running a report and
before trying to export it to see if it lost the cookie value in its
cache, but this was not the case, so I ended up assuming the caching
is happening inside Tomcat.

I'm using Tomcat 5.0.28 and apache http server 2.2.4.

Any suggestion will be much appreciated as i've alredy wasted a lot of
time on this issue!!

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to