Results 1 to 8 of 8

Thread: Windows user logoff

  1. #1

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    12

    Windows user logoff

    I have an intranet page which uses windows authentication.
    I have a logoff button on the page. When the user clicks the logoff button, I want the user credentials to be wiped off so that he need to login back again.
    Right now It doesnt seem to work unless i close the browser. But I want the user to be prompted again for login.
    Any way of doing that? Please suggest

  2. #2
    Frenzied Member Memnoch1207's Avatar
    Join Date
    Feb 2002
    Location
    DUH, Guess...Hint: It's really hot!
    Posts
    1,861

    Re: Windows user logoff

    What credentials?
    Session Variables or just global variables?
    What exactly needs to be removed/reset?
    Being educated does not make you intelligent.

    Need a weekend getaway??? Come Visit

  3. #3

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    12

    Re: Windows user logoff

    Memnoch1207
    I am using windows authentication. I dont know where the webpage stores the credential information ect.

  4. #4
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: Windows user logoff

    You're misunderstanding the point of Windows authentication. That's the whole idea, not to have to type in a user name and password. The credentials are the same as the Windows user account in a trusted connection. Trusted meaning that you TRUST the user on your page is the actual user logged on to Windows.

  5. #5
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Windows user logoff

    Clear the session vars if they're stored in there, redirect the user to some "goodbye" page.

    But basically, if it's a windows authentication based app, then you can simply wait until the user closes his window.

  6. #6

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    12

    Re: Windows user logoff

    I dont have any session variables. The whole purpose for me asking this question is since the web page uses windows authentication, when a internal user goes to that page, he gets the login prompt and once he logs in, the page will never prompt for login again unless he close the window.

    But we need to provide a way to bring up the login prompt when the user clicks the logoff button or something so that another person can login into the page with his own credentials rather then using one credential for all the users.

    I know we can close the window to get the login prompt, but thats not what i wanted.

    Will be glad if anyone can shed some light on this.
    Thanks again.

  7. #7
    Frenzied Member
    Join Date
    Aug 2000
    Location
    Birmingham, AL
    Posts
    1,276

    Re: Windows user logoff

    You can't login and logout from your page like you are thinking with Windows authentication.

    For the user to logoff and a new user log on, the current user would have to log off the Windows SYSTEM and the new user log back on. Sorry, but there is no way around that.

    Are you using a database?

  8. #8

    Thread Starter
    New Member
    Join Date
    Apr 2005
    Posts
    12

    Re: Windows user logoff

    Wey97,
    I understand that. For users I am not using database. They go through Active directory.
    I heard that we can do the stuff I wanted to do by sending something back in the header information. But not sure how to do that.

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