Re: re: session timeout

Torgeir Veimo <[email protected]> 11 Nov 2002 19:12:13 +0100
Newsgroups gmane.comp.java.securityfilter.user
Message-ID <[email protected]>
On Mon, 2002-11-11 at 18:49, Christian Cabanero wrote:
> Hello,
> 
> First off, let me just say that I'm really glad I
> found the securityfilter project on sourceforge!  
> 
> I'm trying to determine if securityfilter stores info
> in the user's session so that it doesn't have to
> actually invoke all the security checking once a user
> has already logged in.  From looking at the code, is
> that what the ALREADY_PROCESSED attribute is for?  So
> if it finds this set to "true" in the user's session
> it'll bypass the security check?  I noticed in the
> code that the attribute is set at the request level
> and not the session level as I would have assumed. 
> Would this mean that the security check would get
> invoked with every new request?  If so, is this so
> that it can check the user's role against the
> protected resource as well?    My main concern is that
> explicitly invoking a security check for every request
> might slow things down.

The filter doesn't implement any cacheing policy, so it checks on every
request with the hasRole() call on the realm. 

At our site we implement cacheing in the realm, so that we don't query
the ldap server we use for authentication on each request.
-- 
-Torgeir



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf