Re: .htaccess Logout



Matthieu Ebert>:

how can I , as a Site User (Visitor) when i loged in with .htaccess logout
myself again without closing my browser. Do you know any solutions in PHP ,
send a Header or something.

Is this a site you want to give users the ability to logout from, or do you want to logout from someone else's site?


You can't control someone else's site, so just close your browser. Or perhaps your browser has an option to forget authentication information.

If this is your site you want the feature for. Try
http://www.php.net/features.http-auth

But you may be better off using a more robust login method than basic authentication. Typically these involve cookies with a session id that times out.


-- Rob McAninch http://rock13.com .



Relevant Pages

  • RE: "Page Cannot Be Displayed" error with IE XP SP2
    ... If you have this in your header and submit a POST from the page, ... Now a consistent browser would not let you ... > an HTTP response from the server. ... > with no custom settings. ...
    (microsoft.public.inetsdk.html_authoring)
  • Re: Questions about HTTP headers sent with PHP in HTTP authentication
    ... And how are status codes sent to the browser if not?? ... and 5.1.2 the header function now prevents more than one header to be ... server send multiple response messages to one request?] ...
    (comp.lang.php)
  • Re: ampersand in urls when using xhtml 1.0 strict
    ... My web server is clearly seeing & and the browser is ... After including this header I was able to remove the encoded ... First, this is very strange because if your browser was displaying the page as HTML, then it was already receiving a content type header from the web server telling it that the page was HTML, or else there was no header and the browser was treating it as HTML by default. ...
    (comp.infosystems.www.authoring.html)
  • Re: ampersand in urls when using xhtml 1.0 strict
    ... My web server is clearly seeing & and the browser (FF ... After including this header I was able to remove the encoded ... the page as HTML, then it was already receiving a content type header ...
    (comp.infosystems.www.authoring.html)
  • Re: Confusing POST behavior -- doing it twice?
    ... The header you set will just do that: ... > 1 - When I start, there is no error message. ... Some just fetch the HTML from cache and display that. ... I have no idea how the current mostly used browser behave. ...
    (comp.lang.php)