public long inactiveTimeMillis(){
  return System.currentTimeMillis() - lastTimeMillis;
}

public long inactiveTimeMillis ( ) { return System . currentTimeMillis ( ) - lastTimeMillis ; }
returns the number of milliseconds this session has been inactive .
