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

J,

On 5/6/2009 1:20 PM, J Channel wrote:
> Hi.
> My tomcat periodically generate pages with links like
> /image/hotel3455.jpg;jsessionid=0D42C72326D97D8E32C950562B8DDA46
> And send me cookie with JSESSIONID even for images request
> http://mysite.com//image/hotel3455.jpg. Is this ok?
> How can i prevent session generation for static content kind of images?

It's not the jpg file that's generating the session, it's the JSP file
you're using to reference it. Add

session="false"

to your <%...@page> directive and these extra sessions should go away.


If you're using a servlet instead, make sure you are calling
request.getSession(false) and then checking for null if you are
sometimes using sessions.

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

iEYEARECAAYFAkoCO+EACgkQ9CaO5/Lv0PA5wwCgrkjvrKh4iAi6QXN5rEJOkhcv
rfgAn0jw7V2Z7rWLnvdzr0v7P3/qO5+T
=bt9O
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to