Ok, I have web.config set to Forms authentication. I set path, loginurl and timeout. Set up some roles in asp administration, and some users. In my login page, I have the following as part of the code:

If Membership.ValidateUser(ViewContext.Request.Form("username"), ViewContext.Request.Form("password")) Then
FormsAuthentication.SetAuthCookie(ViewContext.Request.Form("username"), True)

It seems to be working (I tested the return of ValidateUser, it returned true of false when expected), but when I then move to another page in the app some things don't have set value, such as User.Identity, and Roles objects. Could SetAuthCookie by dependant on something of which I am not aware?

Why would this be?