SetAuthCookie problem

  • Thread starter Cheung Wang Tin
  • Start date
C

Cheung Wang Tin

I have a login page which with the following code:
FormsAuthentication.SetAuthCookie(UserID, False)
'''''For testing''' lblTest.text=context.User.Identity.IsAuthenticated
Response.Redirect("Default.aspx", False)

When loading the login page alone, the login function work fine.
But when the login page was included in other web site's frame, it can not login. The value of context.User.Identity.IsAuthenticated equal to "False" even I provide the correct username and password several times.

Also, when the web site's IP is the same as the login page's IP, it can login.

Does anyone have idea about it? Thank you.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,994
Messages
2,570,223
Members
46,813
Latest member
lawrwtwinkle111

Latest Threads

Top