Results 1 to 5 of 5
Mar 30, 2009, 15:59 #1
Another niggling issue, this time with FormsAuth
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
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?