This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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.