-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Noam,
On 2/24/2009 2:06 PM, Noam Aigerman wrote: > I've been working with apache tomcat under windows for a few months now. > I've just setup a new fedora server, and deployed a .war file to it's > webapps directory. > Everything is running fine on the fedora machine, except that the > session doesn't seem to "stick". > doing something like the code below in my Servlet: > > String check=session.getAttribute("check"); > System.out.println("this is what I got: "+ check); > session.setAttribute("check","one"); How do you acquire the session object in the first place? Are you using cookies or URL rewriting? Have you done an HTTP capture using LiveHttpHeaders (or similar) or a TCP dump using Wireshark (or similar)? I wonder if the cookie is being set to a domain like www.foo.com but your are using 'localhost' to access the webapp. This will cause your browser to fail to send cookies back to the server on subsequent requests. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmkbgUACgkQ9CaO5/Lv0PDXUwCfUVCeAWe7S4JlBlIYqGhx57kC 0XEAoLXpxrcTD5tNb4YpPXjVBZG5JaNa =PGmv -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org