parvez Moinuddin wrote:But how can I make it automatically redirected to Login page.
You'll have to explain what you mean by this.
If you mean that, all by itself, the page should redirect when the session expires, well that's impossible. Without making any request back to the server, how would the browser know that the session has expired? Think about that.
Rather than relying on the session timeout, do you really need a client-side JavaScript timer?