473,326 Members | 2,438 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

URGENT: FormsAuthentication.SetAuthCookie fails in IE6

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") & ""))
Jun 27 '08 #1
2 2906
Sounds like it might be the secuirity settings of the browser; your code
looks fine (at least as much as you have provided).
Peter

"Cirene" <ci****@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
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") & ""))

Jun 27 '08 #2
I changed response.redirect to server.transfer and it worked. Any idea why?
Thanks!

"Peter Bromberg [C# MVP]" <pb*******@nospammin.yahoo.comwrote in message
news:CA**********************************@microsof t.com...
Sounds like it might be the secuirity settings of the browser; your code
looks fine (at least as much as you have provided).
Peter

"Cirene" <ci****@nowhere.comwrote in message
news:%2****************@TK2MSFTNGP06.phx.gbl...
>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.ToStrin g(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") & ""))


Jun 27 '08 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: G-Fit | last post by:
Hello group, I use Forms Authentication in my web application and I am not sure I understand the way the cookie works. I use the SetAuthCookie method with a database identifier as userName, as...
1
by: Bryan | last post by:
Hi, here's my cod If AuthorizeUser(txtUsername.Text, txtPassword.Text) The If Request.QueryString("ReturnURL") > "" The FormsAuthentication.RedirectFromLoginPage(txtUsername.Text, False Els...
5
by: Vishal | last post by:
Hello, I already asked this question in the ASP.NET forums, but no help came. So I am hoping that somebody can help me out. This is really very URGENT me. For my e-commerce application, I...
0
by: fadi | last post by:
Hopefully someone seen this and knows best way around it. When using FormsAuthentication and using FormsAuthentication.SetAuthCookie, ASP.NET creates a cookie similar to the domain URL. For...
3
by: Phil Certain | last post by:
Hi I'm building a site that has publicly available pages and password protected pages. Publicly available pages reside in: /public and password protected pages reside in: /private
4
by: Matthias S. | last post by:
Hi there, I've created an application which is using Forms-based authentification. My Login-Button event handler looks somewhat like this: // validate the input, etc... // sUserName holds now...
2
by: pv | last post by:
Hi everyone, I need help with following scenario, please: Users are accessing same web server from intranet (users previously authenticated in Active Dir) and from extranet (common public...
3
by: David | last post by:
Hi all, I am having a slight issue with FormsAuthentication. I need to authenticate a user and while the page is still being processed, need to work with that authenticated user. I have set up...
0
by: Rodrigo m. Ferreira | last post by:
Can you help me to solve the following problem? on my loggin page I have the code: protected void LoginButton_Click(object sender, EventArgs e) { if(Membership.ValidateUser(TXTUsuario.Text,...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.