Automatically redirecting user to login page on session timeout

I recently got typical requirement from client to auto redirect user to login page if there is no user activity for certain period say 10 minutes. I thought I might have to add some Javascript hacking but later I learned that I can use refresh attribute of meta tag to achieve same page flow in ASP.NET. I just require add following meta tag snippet in hear of the page

<meta http-equiv="refresh" content="600;url=<%= Request.Url.AbsoluteUri %>">

First value of content attribute is number of seconds (10 minutes in above case) page will wait before redirection and next value specified the URL where page will redirect, here it will redirect to the Login.aspx page.