This is what I use to make sure dynamic data is not cached:

        resp.setHeader("Expires", "Sat, 6 May 1995 12:00:00 GMT");
resp.setHeader("Cache-Control", "no-store, no-cache, must- revalidate");
        resp.addHeader("Cache-Control", "post-check=0, pre-check=0");
        resp.setHeader("Pragma", "no-cache");



On Feb 28, 2008, at 11:25 AM, Sascha Monteiro wrote:

Hi,
When I see this behaviour I don't see the output on the server (thanks Yuval)

It is just suddenly on my browser..

Maybe it's my wireless Cable Modem...maybe caching or so...

I'll do some more debugging in the weekend..

ta

----- Original Message ----- From: "Christopher Schultz" <[EMAIL PROTECTED]>
To: "Tomcat Users List" <users@tomcat.apache.org>
Sent: Wednesday, February 27, 2008 3:44 AM
Subject: Re: sessionID moves to other PC


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Sascha,

Sascha Monteiro wrote:
| I now put <% out.println(session.getId()); %> in the page..
| I see my sessionID, but then navigate to another page and then see the
| sessionID of the other user!
| then I press reload in my browser, and I get my own session again, till
| I navigate again...

This sounds suspiciously like you are storing either the session object
or the request object somewhere you should not be (such as in a member
of one of your servlets or JSPs or something).

Can you post a little bit of code from the servlet that ends up with the
wrong session?

- -chris

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.8 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkfEJdkACgkQ9CaO5/Lv0PAUgACgnBBJmJ1Mn4kbNKy0GlIEzmVA
WEwAn1RHgNfHmkDpJ/uMwx40elrkxTWX
=QCiV
-----END PGP SIGNATURE-----

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



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




---------------------------------------------------------------------
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