I use HttpSession for handling session in my JSP. I had set the max idle time interval for 5 minutes. I should implement a functionality which checks for session validity and should redirect to login page, if expired. How to implement this. Should I check against the session variable for null or should I check with the idle time period. Iam implementing it in multiple frames. Please give a logic with sample code of checking the session validity. Early solution is appreciated.
sorry about the error in the post above.
response.sendRedirect should be used instead of request.