This week's book giveaways are in the Refactoring and Agile forums. We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line! See this thread and this one for details.
lets say user is in some page and it comes through "userAction.do" (which i see in url bar) then user logs out I am invalidating the session (let's it goes to logout.do)and then retrieves some info about the user (e.g. user id) and sending user to login page (welcome.do setting the userId as querystring).