A method of trapping a logout event includes receiving an HTTP request,
checking if a URI of the HTTP request matches an entry in a first map,
looking for an entry in a second map, checking for a logout parameter in
a list of request query parameters, checking for a logout parameter in a
header of the HTTP request, checking for a logout parameter in a body of
the HTTP request, and triggering a logout event when the first of the
entries or parameters if found. The method can be extended to call a
logout handler and can be used in a wide range of web-based computing
environments and in particular with policy/web/j2ee agents.