+ Reply to Thread
Results 1 to 4 of 4




  

Thread: About Logoff button help???

      
  1. #1
    Jedi Master realistic is on a distinguished road
    Join Date
    November 5, 2008
    Location
    London
    Posts
    162
    Rep Power
    4
    Feedback Score
    0

    Question About Logoff button help???

    I have website that is authenticated using Active directory (no form authentication-simple password protected folder that prompts for credentials).

    Once the user enters his/her credentials, they have access to the password protected section. I need to have a logoff button that once the user click on it, the cookie that stores their credentials, gets modified or deleted, so if the user goes back to the link, the credentials are asked again. All this without closing the browser.

  2. #2
    Super Moderator tsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to beholdtsdesigns is a splendid one to behold tsdesigns's Avatar
    Join Date
    February 6, 2008
    Location
    Scotland
    Posts
    1,078
    Rep Power
    6
    Feedback Score
    0

    Default Re: About Logoff button help???

    As far as I know with simple password protected folders (done through .htaccess) there isn't a way to "log out" as such unless the user closes the browser.

    It is impossible to make a browser "forget" the password. You can always write over the stored password with a fake one though.

    It isn't a very good solution, but it works.

  3. #3
    Jedi Master ChrisMac is on a distinguished road
    Join Date
    November 26, 2009
    Posts
    29
    Rep Power
    3
    Feedback Score
    0

    Default Re: About Logoff button help???

    Short answer: I am afraid there is no easy way to "log out" from Basic HTTP authentication.

    Long answer (from Apache FAQ page):

    Since browsers first started implementing basic authentication, website administrators have wanted to know how to let the user log out. Since the browser caches the username and password with the authentication realm, as described earlier in this tutorial, this is not a function of the server configuration, but is a question of getting the browser to forget the credential information, so that the next time the resource is requested, the username and password must be supplied again. There are numerous situations in which this is desirable, such as when using a browser in a public location, and not wishing to leave the browser logged in, so that the next person can get into your bank account.

    However, although this is perhaps the most frequently asked question about basic authentication, thus far none of the major browser manufacturers have seen this as being a desirable feature to put into their products.

    Consequently, the answer to this question is, you can't. Sorry.

  4. #4
    Grand Masters vectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nicevectro is just really nice vectro's Avatar
    Join Date
    September 5, 2008
    Location
    U.S.A.
    Posts
    1,499
    Rep Power
    4
    Feedback Score
    0

    Default Re: About Logoff button help???

    Clearing the private data in the browser seems like the only way, regardless of the server's operating system.
    Vectro Web Hosting - Web hosting with solid tech support.

    x Proxy Host - Affordable PHP proxy hosting with proxy-specific features.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

     

Similar Threads

  1. Button and Banner Set
    By grim in forum Templates/Graphics
    Replies: 1
    Last Post: Dec 6th, 2008, 11:22 am
  2. Thanks Button
    By kojak in forum Feedback and Support
    Replies: 10
    Last Post: Feb 23rd, 2007, 11:47 pm

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
WebTalkForums
WebTalkForums
Recent Forum Threads