Results 1 to 4 of 4

Thread: ASP.NET Authentication

  1. #1

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298

    Question ASP.NET Authentication

    I am using "windows" authentication, and in IIS I have selected the Basic Authentication option so now when I go the the site I have the dialog box that I input my username and password.

    The problem is this, unless I close the browser window and authentication sticks and I can go to somewhere else like google then go back to my site and it automatically logs me back in.

    Is there a way that I can create a "logoff" routine??
    Regards,


    Matt

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    I've only dealt with Forms authentication myself...

    It may be possible a cookie is being saved in your temp dir, and that cookie is providing the necessary credentials when you return (so long as the session hasn't expired ~ 20 mins). You could create a logout page that fires Session.Abandon when it loads.

  3. #3

    Thread Starter
    Hyperactive Member
    Join Date
    Oct 2000
    Location
    Chesterfield, UK
    Posts
    298
    Yeah I had wondered about that, but that just kills the session. That type of authentication doesn't use the session state object.

    Thanks,


    Matt.

  4. #4
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    You can use Mozilla to test this, once you browse to your app, and a cookie is issued, Mozilla will notify you by default. Or at the very least, if not enabled in recent versions by default, its available under Page Info.

Posting Permissions

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



Click Here to Expand Forum to Full Width