Author: inovative | Posted on: 11/11/2008 12:31:14 AM | Views : 269


Hi,

i am adding form authentication on my page login.aspx,default.aspx



after successful login it's being redirected to default.aspx ,
that is fine
but when i should logged out by clicking on sign out button
it should not give direct access to default.aspx page
this is working fine in case of Mozilla browser but IE giving dirrect access to default.aspx


please let me know the write solution for this, all code is below.



web.config













code for login.aspx is




public partial class login : System.Web.UI.Page

{
protected void Page_Load(object sender, EventArgs e)
{

}

protected void Button1_Click(object sender, EventArgs e)

{
if (TextBox1.Text == "lakshya.rahul@gmail.com" && TextBox2.Text == "imation")

{

FormsAuthentication.RedirectFromLoginPage(TextBox1.Text, persist.Checked);
}

else

{

Label1.Text = &quo ...

Go to the complete details ...