After lots of research, I had to accept the fact that only integers are allowed under
session-timeout
tag . If at all if session expiry to be set in seconds, then only way left is to control it through Java.
To Answer my question, it is NOT possible to set session-expiry by seconds through web.xml