locked
About setauthcookie RRS feed

  • Question

  • User1256512446 posted

     Hi all:

    I use forms authentication. I pass a value to identity.name

                FormsAuthentication.SetAuthCookie(sqlc.ExecuteScalar, True)
                Response.Write("setauthcookie=")
                Response.Write(Page.User.Identity.Name)
    

    The first time I want to recover page.user.identity.name it is value. And the second time it gives me the right value.

    How to get it the first time?

    Thanks in advanced

    Wednesday, February 4, 2015 7:48 AM

Answers