Access Denied using Impersonation

Discussion in 'ASP .Net Security' started by Ryan, Jan 5, 2004.

  1. Ryan

    Ryan Guest

    I am developing an intranet application that uses windows
    authentication and impersonation. The problem I'm having
    is that it seems when the session ends the access token
    is lost (just a guess) and when the user tries to load
    the page again an Access Denied error is generated. Has
    anyone experienced this before and know of a workaround.

    Any help is greatly appreciated. Thank You!

    Ryan
     
    Ryan, Jan 5, 2004
    #1
    1. Advertising

  2. If this is a situation where the user is logged on to a domain and you are
    using Windows Integrated Authentication in IIS the session should not
    matter. Even if the session ends, on the next request, the same credentials
    should be passed to the server and used. If you think it is the session, a
    good test would be to lower the timeout to maybe 5 mins and try the same
    steps with that.

    You can find the timeout setting in the web.config file. Another thing you
    could do if you are not sure what user is really trying to access the file
    at the time the error occurs would be to run filemon from
    www.sysinternals.com. You can look for Access Denieds and it will also list
    the account that is doing the access.

    This posting is provided "AS IS" with no warranties, and confers no rights.
    Hope this helps.
    Holly
     
    Holly Mazerolle, Jan 6, 2004
    #2
    1. Advertising

  3. No problem. :)

    Holly
     
    Holly Mazerolle, Jan 6, 2004
    #3
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Andy
    Replies:
    2
    Views:
    3,510
  2. Replies:
    0
    Views:
    439
  3. JimLad
    Replies:
    0
    Views:
    640
    JimLad
    Jan 26, 2010
  4. Petr PALAS

    Access Denied and Impersonation

    Petr PALAS, Sep 15, 2003, in forum: ASP .Net Security
    Replies:
    0
    Views:
    170
    Petr PALAS
    Sep 15, 2003
  5. Navin Mishra

    Newbie: Access denied error when using impersonation

    Navin Mishra, Jul 10, 2003, in forum: ASP .Net Web Services
    Replies:
    0
    Views:
    171
    Navin Mishra
    Jul 10, 2003
Loading...

Share This Page