htaccess and logout

XML, Perl, Python, and other languages can be discussed here, even if it isn't PHP (We might forgive you).

Moderator: General Moderators

Post Reply
duda_y
Forum Newbie
Posts: 6
Joined: Mon Sep 02, 2002 10:39 am
Location: Argentina

htaccess and logout

Post by duda_y »

I protect my Web Application tree wiht
.htaccess file of Apache.
Is there any way to make logout exept closing all browser windows.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

No there isn't anyway of logging out of that kind of thing :cry:
User avatar
volka
DevNet Evangelist
Posts: 8391
Joined: Tue May 07, 2002 9:48 am
Location: Berlin, ger

Post by volka »

you may send back a 401 Unauthorized to encourage the browser to flush its login/pass-settings for this domain.
User avatar
lanlord
Forum Newbie
Posts: 13
Joined: Wed Sep 18, 2002 10:02 am

Couldn't you destroy the session?

Post by lanlord »

I would think if you were using sessions using session_destroy() would do what you want.
User avatar
Takuma
Forum Regular
Posts: 931
Joined: Sun Aug 04, 2002 10:24 am
Location: UK
Contact:

Post by Takuma »

You don't use sessions with .htaccess :lol: It's HTTP authentication!
User avatar
twigletmac
Her Royal Site Adminness
Posts: 5371
Joined: Tue Apr 23, 2002 2:21 am
Location: Essex, UK

Post by twigletmac »

Takuma wrote:You don't use sessions with .htaccess :lol: It's HTTP authentication!
It's not nice to laugh at other people's answers Takuma - you could have pointed that out without the :lol: and maybe explained a bit better. lanlord was trying to help and may have never come across .htaccess or may have read the question wrong considering it's in the completely wrong forum for the subject (I've moved it to Miscellaneous now).

Mac
Post Reply