Hello,
Better approach is to create Cookies on clients, And check cookie every time. Refer following code snippet.
public bool IsInstanceAlreadyExist()
{
if (null == System.Web.HttpContext.Current.Request.Cookies["InstanceExist"])
{
HttpCookie myCookie = new HttpCookie("InstanceExist")
myCookie.Value = "True";
System.Web.HttpContext.Current.Response.Cookies.Add(myCookie);
return false;
}
else
{
return true;
}
}
And clear the cookie on Session to handle browser close issues.
void Session_End(object sender, EventArgs e)
{
}
Thanks!!!!