URGENT: FormsAuthentication.SetAuthCookie fails in IE6

C

Cirene

FormsAuthentication.SetAuthCookie works fine in IE7, but not in IE6. Any
idea why?

Any alternative to FormsAuthentication.SetAuthCookie?

Here's my code:

FormsAuthentication.SetAuthCookie(Convert.ToString(Request("lexusername") &
""), True)

Response.Redirect("customer/ViewCalendar.aspx")

The ViewCalendar.aspx page is only for authenticated users. It keeps
kicking me back to the login page even though the username password is
correct. I know because this gives me TRUE:

Membership.ValidateUser(Convert.ToString(Request("lexusername") & ""),
Convert.ToString(Request("lexpassword") & ""))
 
P

Peter Bromberg [C# MVP]

Sounds like it might be the secuirity settings of the browser; your code
looks fine (at least as much as you have provided).
Peter
 

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

Top