If the session has expired and the user clicks on a link to another webform, the asp.net authentication automatically redirect the user to the login page.
However, t
If you're using a master page or a base page, I would add some logic to one of the events in the page lifecycle to check whether the session is new:
protected void Page_Load(object sender, EventArgs e) { if (Session.IsNewSession) { //do whatever you need to do } }