SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    SitePoint Zealot davejuk's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Forms Authentication Bug

    I'm using forms authentication under .NET 2.0 to restrict access to a folder.

    The problem I have is that some IE users are taken to the default page once they enter a valid username/pass, but then they get a JavaScript error in the bottom left of their browser and are unable to get past this page. They just get taken back to the login page. I believe this is only affecting IE6 users but I have been unable to reproduce. Is this a known issue with forms authentication, or do they have cookies or something disabled?

    The relevant section from my web.config can be seen below:

    Code VBNET:
    ..
     
    <authentication mode="Forms">
          <forms name="wwauth" 
          loginUrl="/members/Login.aspx" 
          defaultUrl="/members/" 
          protection="All" 
          timeout="30" 
          path="/" />
        </authentication>
     
        <authorization>
          <allow users="*" />
        </authorization>
     
      </system.web>
     
      <location path="members">
        <system.web>
          <authorization>
            <deny users="?" />
          </authorization>
        </system.web>
      </location>
     
    ..

  2. #2
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,576
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Have you tracked down the javascript error? (ProTip: use the ie developer toolbar.)

  3. #3
    SitePoint Zealot davejuk's Avatar
    Join Date
    Apr 2006
    Location
    UK
    Posts
    188
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by wwb_99 View Post
    Have you tracked down the javascript error? (ProTip: use the ie developer toolbar.)
    I haven't been able to reproduce it, so it's a little awkward to get a customer to do it!

  4. #4
    SitePoint Author silver trophybronze trophy
    wwb_99's Avatar
    Join Date
    May 2003
    Location
    Washington, DC
    Posts
    10,576
    Mentioned
    4 Post(s)
    Tagged
    0 Thread(s)
    Why not? There is the IE6 Virtual PC for testing exactly this sort of thing . . .


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •