I am using WebSpheer application server for my application,with session time out set to 15 mins. I have implementd a session listener that destroy's all invalid sessions once the session has ended upon inactivity from user for more than 15 mins.
Are you talking about HTTPSessions? WebSphere should do that automatically when the session timeout value is reached.
You should not have to do anything.
Is there any way that I can send the user directly to login screen without having him to click any link on the application to check if the session is valid/invalid.
I am not able to find any means how can I continously check for a logged in user if his session had ended and forcefully sending him to login screen upon inactivity on the application.
This is how container managed security should work. Can you not just use that?