Veena, I don't think I understand your question but I will tell you what this method does.
The setMaxInactiveInterval(int interval) specifies the time, in seconds, between client requests before the
servlet container will invalidate this session.
Therefore,
setMaxInactiveInterval(60) invalidates the session after 60 seconds or 1 minute of no client request.
If the interval is set to zero, session is expunged immediately. If the interval is set to any negative value, say -1 or -2, the session never times out.