IIRC, session.setMaxInactiveInterval is not supported by iAS and calls to it will be ignored.
On the other hand, I can't tell you why you are getting timed out early. There are some issues (largely when the reaper
thread is overloaded) where timeouts don't happen promptly, but I can't say I've heard of any issues where it is happening too soon.