-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin,
On 11/9/2010 3:30 PM, Martin Uria wrote: > I am trying to have a cookie validated in Tomcat against a mysql > entry, if it validates it should proceed to the requested resource, > and if not, it should redirect to a different page (which writes the > cookie on successful login). The idea is to have tomcat somehow > capture the http request, check for the cookie presence, capture the > cookie contents and compare them against the db (I already have > this), and proceed with the request if everything checks out, or > redirect to a login page (which is outside of the tomcat app, I think > it is running on rails). > > Any ideas on how to do this? This what javax.servlet.Filter was made for. You will have to write your own code to do the checking and the redirecting. - -chris -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.10 (MingW32) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkzZuMIACgkQ9CaO5/Lv0PAKJwCgkOEmUbQqCWoUS2MQBpCqXape vl0AnRioaiS4hbdiMhA+LCxZvfyYegV8 =o3mZ -----END PGP SIGNATURE----- --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org