From: <glassfish_at_javadesktop.org>
Date: Tue, 11 Nov 2008 01:53:11 PST
You can write a custom SAM (Server Authentication Module) and configure the web-application to use this. Through the validateRequest method in SAM, the cookie in the HttpServeletRequest could be checked and further authentication can be obviated.
This tech tip explains how to write and configure a SAM: