website keeps asking for login

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 200dogz
    New Member
    • Oct 2008
    • 52

    #1

    website keeps asking for login

    Hi,

    My asp.net based website often asks for login information multiple times while loading a page. It seems to happen randomly; and for pages that take longer to load it might even ask 3 or 4 times.

    This happens to all the users using the site. I suspect I might need to set the expiry time for session/cookies etc but I'm not completely sure that's the reason or how to set them.

    Any advice is appreciated, thanks :)
  • sangam56
    New Member
    • Nov 2007
    • 68

    #2
    Hi 200dogz,
    Please try to debug the application and exactly watch what is happening inside it. Or you could post the code in the page that is facing this problem. Thanks.

    Comment

    • 200dogz
      New Member
      • Oct 2008
      • 52

      #3
      Originally posted by sangam56
      Hi 200dogz,
      Please try to debug the application and exactly watch what is happening inside it. Or you could post the code in the page that is facing this problem. Thanks.
      Thanks for the reply sangam.

      There's nothing wrong with debugging/compiling the site, and since this can happen to almost every page in the website I haven't been able to spot out what's causing it exactly.

      However I do suspect that it might be because I have not close some of the OdbcDataReaders and OdbcConnection; but that's just one possibility.

      Comment

      • semomaniz
        Recognized Expert New Member
        • Oct 2007
        • 210

        #4
        It sounds like your login session expires real fast. Check the IIS for session details. On IIS right click on the website tab and check the Connection timeout option. And also check you web.config file under authentication. check the timeout property is set properly.

        Comment

        • 200dogz
          New Member
          • Oct 2008
          • 52

          #5
          Originally posted by semomaniz
          It sounds like your login session expires real fast. Check the IIS for session details. On IIS right click on the website tab and check the Connection timeout option. And also check you web.config file under authentication. check the timeout property is set properly.
          I've enabled anonymous access in IIS and the login screen no longer shows up :).

          So you're most likely right about it being an IIS issue.

          Cheers :)

          Comment

          Working...