When the process starts, store the expiry time in the session
protected void Page_Load(object sender, EventArgs e)
{
if (Session["Expiry"] == null)
{
Session["Expiry"] = DateTime.Now.AddMinutes(30);
}
}
The use some javascript to show a countdown on each page
Countdown timer in asp.net[
^]
Rather than hard-coding the interval you get the minutes left from the date stored in the session
var min = <%=(((DateTime)Session["Expiry"]) - DateTime.Now).Minutes %>;