From 576362b4ad88b8a34c8af225c170616c1591fed9 Mon Sep 17 00:00:00 2001 From: tonnesen Date: Thu, 5 Sep 2002 19:44:00 +0000 Subject: [PATCH] logout.pl checks if the server is using basic authentication. If it is, is displays a message stating that the user must exit their browser to log out. --- logout.pl | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/logout.pl b/logout.pl index 47fd4c3393..e03410db95 100755 --- a/logout.pl +++ b/logout.pl @@ -2,11 +2,29 @@ use CGI; use C4::Database; +use C4::Output; my $query=new CGI; my $sessionID=$query->cookie('sessionID'); + +if ($ENV{'REMOTE_USER'}) { + print $query->header(); + print startpage(); + print startmenu('catalogue'); + print qq| +

Logout Feature Not Available

+Your Koha server is configured to use a type of authentication called "Basic +Authentication" instead of using a cookies-based authentication system. With +Basic Authentication, the only way to logout of Koha is by exiting your +browser. +|; + print endmenu('catalogue'); + print endpage(); + exit; +} + my $sessions; open (S, "/tmp/sessions"); while (my ($sid, $u, $lasttime) = split(/:/, )) { -- 2.39.5