In Login page
if (authentication success)
{
Session["UserStatus"] = UserName.Text;
Server.Transfer("~/applyleave.aspx");
}
else
{
Response.Write("Retry");
}
In applyleave.aspx
On page load event
if (Session["UserStatus"] != null)
{
}
else
Server.Transfer("~/applyleave.aspx");