Author: asamaid1 | Posted on: 7/3/2008 10:30:18 PM | Views : 312

Hello,

         I m new in ASP.NET.   I made a website where authenticaed user has to log in entering user name and password(untill he logs in he cant visit any other page in the project, i m using webmatrix ). Then the user is redirected to the default.aspx page. There the user clicks a button which deletes the cookie, and redirect the user  again to the login.aspx page. The problem is that, after logging out the user still can visit the default page without logging in again, (but the user should not be able to visit the default page untill again he logs in entering username and password). I have got a web.config file where all the anonymous user is denied. And  in the default page i have got this code:

 

 Sub LogOut_Click(sender As Object, e As EventArgs)

 FormsAuthentication.SignOut() 

 Response.Redirect("Login.aspx&q ...

Go to the complete details ...