I have a site that uses roles (which I really don't understand). Below I set up a auth (which is needed to be anywhere in the site) and a role (which is needed to be in certain parts of the site). So here is the problem, if I sign in it seems as though I dont get authed so I get placed back to the log in screen (i.e. Nothing really happens), If i use Guest then the site works perfect. Here is the catch, if I use Guest then logout and sign in then the site works perfect. When signing out I use FormsAuthentication.SignOut()
If Sign in then:
FormsAuthentication.SetAuthCookie(txtUsername.Text, True)
Dim authTicket As FormsAuthenticationTicket = New FormsAuthenticationTicket(1, User.Identity.Name, DateTime.Now, DateTime.Now.AddMinutes(15), False, role)
Dim encTicket As String = FormsAuthentication.Encrypt( ...
Go to the complete details ...