How do I log out with HTTP Basic?












4















Browsers rarely make it easy to log out of a site once you've logged on with HTTP Basic authentication. How can I do this?



(This form of authentication is rarely used on the public web, but the intranet I'm on uses it all the time. It's the one where you get a pop-up dialog asking you for a username and password.)










share|improve this question



























    4















    Browsers rarely make it easy to log out of a site once you've logged on with HTTP Basic authentication. How can I do this?



    (This form of authentication is rarely used on the public web, but the intranet I'm on uses it all the time. It's the one where you get a pop-up dialog asking you for a username and password.)










    share|improve this question

























      4












      4








      4








      Browsers rarely make it easy to log out of a site once you've logged on with HTTP Basic authentication. How can I do this?



      (This form of authentication is rarely used on the public web, but the intranet I'm on uses it all the time. It's the one where you get a pop-up dialog asking you for a username and password.)










      share|improve this question














      Browsers rarely make it easy to log out of a site once you've logged on with HTTP Basic authentication. How can I do this?



      (This form of authentication is rarely used on the public web, but the intranet I'm on uses it all the time. It's the one where you get a pop-up dialog asking you for a username and password.)







      http authentication






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked May 21 '15 at 8:39









      Leif Arne StorsetLeif Arne Storset

      19817




      19817






















          2 Answers
          2






          active

          oldest

          votes


















          6














          Log in with a nonsense user using the address bar. For example, if you logged on to http://codereview.internal.company, enter this:



          http://logout:logout@codereview.internal.company


          h/t Riyadi on tolaris.com






          share|improve this answer































            0














            For chrome browser you can restart the chrome application completely by typing in the address bar.



            chrome://restart


            Another way is that, always open the browser in incognito mode. For chrome the shortcut is



            ctrl + shift + n


            Another way you can try it out is that, try to give wrong credentials if you want to logout. Say,



            randometxt@localhost:3000


            *sometimes, this works.






            share|improve this answer
























              Your Answer








              StackExchange.ready(function() {
              var channelOptions = {
              tags: "".split(" "),
              id: "3"
              };
              initTagRenderer("".split(" "), "".split(" "), channelOptions);

              StackExchange.using("externalEditor", function() {
              // Have to fire editor after snippets, if snippets enabled
              if (StackExchange.settings.snippets.snippetsEnabled) {
              StackExchange.using("snippets", function() {
              createEditor();
              });
              }
              else {
              createEditor();
              }
              });

              function createEditor() {
              StackExchange.prepareEditor({
              heartbeatType: 'answer',
              autoActivateHeartbeat: false,
              convertImagesToLinks: true,
              noModals: true,
              showLowRepImageUploadWarning: true,
              reputationToPostImages: 10,
              bindNavPrevention: true,
              postfix: "",
              imageUploader: {
              brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
              contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
              allowUrls: true
              },
              onDemand: true,
              discardSelector: ".discard-answer"
              ,immediatelyShowMarkdownHelp:true
              });


              }
              });














              draft saved

              draft discarded


















              StackExchange.ready(
              function () {
              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f917602%2fhow-do-i-log-out-with-http-basic%23new-answer', 'question_page');
              }
              );

              Post as a guest















              Required, but never shown

























              2 Answers
              2






              active

              oldest

              votes








              2 Answers
              2






              active

              oldest

              votes









              active

              oldest

              votes






              active

              oldest

              votes









              6














              Log in with a nonsense user using the address bar. For example, if you logged on to http://codereview.internal.company, enter this:



              http://logout:logout@codereview.internal.company


              h/t Riyadi on tolaris.com






              share|improve this answer




























                6














                Log in with a nonsense user using the address bar. For example, if you logged on to http://codereview.internal.company, enter this:



                http://logout:logout@codereview.internal.company


                h/t Riyadi on tolaris.com






                share|improve this answer


























                  6












                  6








                  6







                  Log in with a nonsense user using the address bar. For example, if you logged on to http://codereview.internal.company, enter this:



                  http://logout:logout@codereview.internal.company


                  h/t Riyadi on tolaris.com






                  share|improve this answer













                  Log in with a nonsense user using the address bar. For example, if you logged on to http://codereview.internal.company, enter this:



                  http://logout:logout@codereview.internal.company


                  h/t Riyadi on tolaris.com







                  share|improve this answer












                  share|improve this answer



                  share|improve this answer










                  answered May 21 '15 at 8:39









                  Leif Arne StorsetLeif Arne Storset

                  19817




                  19817

























                      0














                      For chrome browser you can restart the chrome application completely by typing in the address bar.



                      chrome://restart


                      Another way is that, always open the browser in incognito mode. For chrome the shortcut is



                      ctrl + shift + n


                      Another way you can try it out is that, try to give wrong credentials if you want to logout. Say,



                      randometxt@localhost:3000


                      *sometimes, this works.






                      share|improve this answer




























                        0














                        For chrome browser you can restart the chrome application completely by typing in the address bar.



                        chrome://restart


                        Another way is that, always open the browser in incognito mode. For chrome the shortcut is



                        ctrl + shift + n


                        Another way you can try it out is that, try to give wrong credentials if you want to logout. Say,



                        randometxt@localhost:3000


                        *sometimes, this works.






                        share|improve this answer


























                          0












                          0








                          0







                          For chrome browser you can restart the chrome application completely by typing in the address bar.



                          chrome://restart


                          Another way is that, always open the browser in incognito mode. For chrome the shortcut is



                          ctrl + shift + n


                          Another way you can try it out is that, try to give wrong credentials if you want to logout. Say,



                          randometxt@localhost:3000


                          *sometimes, this works.






                          share|improve this answer













                          For chrome browser you can restart the chrome application completely by typing in the address bar.



                          chrome://restart


                          Another way is that, always open the browser in incognito mode. For chrome the shortcut is



                          ctrl + shift + n


                          Another way you can try it out is that, try to give wrong credentials if you want to logout. Say,



                          randometxt@localhost:3000


                          *sometimes, this works.







                          share|improve this answer












                          share|improve this answer



                          share|improve this answer










                          answered Feb 4 at 6:46









                          NIKHIL C MNIKHIL C M

                          1012




                          1012






























                              draft saved

                              draft discarded




















































                              Thanks for contributing an answer to Super User!


                              • Please be sure to answer the question. Provide details and share your research!

                              But avoid



                              • Asking for help, clarification, or responding to other answers.

                              • Making statements based on opinion; back them up with references or personal experience.


                              To learn more, see our tips on writing great answers.




                              draft saved


                              draft discarded














                              StackExchange.ready(
                              function () {
                              StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f917602%2fhow-do-i-log-out-with-http-basic%23new-answer', 'question_page');
                              }
                              );

                              Post as a guest















                              Required, but never shown





















































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown

































                              Required, but never shown














                              Required, but never shown












                              Required, but never shown







                              Required, but never shown







                              Popular posts from this blog

                              Terni

                              A new problem with tex4ht and tikz

                              Sun Ra