Hi I used this in C#:
FormsAuthentication.RedirectFromLoginPage(userID, chkPersistCookie.Checked)
to create a cookie for my web app.
I need to know how to get the userID back from the cookie?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
To get user Id you just need to access the principal. For more read
If you want to get it from the cookie, the cookie can be read as(I don’t recommend this):