when we copy the url to another browser it should be redirected to login page only.
in my project ,Its working but have some problem.if i run my project in chrome and copy the url in mozilla ,it redirected into my login page.but in mozilla if i open a new tab and copy the url it shows my current page instead of login page.once i close all tab in mozilla and do the same thing mean it is working .Why this problem happening pls help me.
Now am using lik this :
protected void Application_Start(object sender, EventArgs e)
{
}
protected void Session_Start(object sender, EventArgs e)
{
Response.Redirect(Request.Url.GetLeftPart(UriPartial.Authority) + VirtualPathUtility.ToAbsolute("~\\Home.aspx"));
}
protected void Application_BeginRequest(object sender, EventArgs e)
{
}
protected void Application_AuthenticateRequest(object sender, EventArgs e)
{
}
protected void Application_Error(object sender, EventArgs e)
{
}
protected void Session_End(object sender, EventArgs e)
{
Response.Redirect(Request.Url.GetLeftPart(UriPartial.Authority) + VirtualPathUtility.ToAbsolute("~\\Home.aspx"));
}
protected void Application_End(object sender, EventArgs e)
{
}
}
}
.Shall i use any other method in web config ,pls suggest me .