This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
I am trying to monitor user session and alert user that the session is about to expire. I do have client side solutions however I am wondering how can I inquire the Httpsession.getLastAccessedTime() (or similar ) method without renewing user session stats. In essence every time I access this method through servlet or jsp, the session is automatically extended and this, obviously, defeats the purpose of the session timeout tracking.
Nothing on the server side can do this, since the server side only communicates with the user when the user sends a request. And since you want to communicate with the user without receiving a request, you have to look at client-side solutions.