Joined: Jun 06, 2008
My jsp's have ajax code to fetch some data from server.
The approach I take, is to bind an object (say "userBean") to session when the user logs in. With each request, check for the existence of userBean in session. If it is not there (null), forward or redirect to a session expired page.
Filters make it easy to add this functionality to an existing application without needing to add code to every component.