Hi ,

You can use filter for same and other option is try to read sessiontimeout from request scope and compare from your maximum session interval.

Right some condtion there and if its is max...