version 1.3, 2001/11/29 19:12:44
|
version 1.6, 2003/01/29 15:22:06
|
Line 28
|
Line 28
|
# (Cookie Based Access Handler |
# (Cookie Based Access Handler |
# 5/21/99,5/22,5/29,5/31,6/15,16/11,22/11, |
# 5/21/99,5/22,5/29,5/31,6/15,16/11,22/11, |
# 01/06,01/13 Gerd Kortemeyer) |
# 01/06,01/13 Gerd Kortemeyer) |
# 05/31 Gerd Kortemeyer |
# 05/31,11/29,12/29 Gerd Kortemeyer |
|
|
package Apache::lonlogout; |
package Apache::lonlogout; |
|
|
Line 64 sub handler {
|
Line 64 sub handler {
|
$sessionhash{$envname}=$envvalue; |
$sessionhash{$envname}=$envvalue; |
} |
} |
unlink("$lonidsdir/$handle.id"); |
unlink("$lonidsdir/$handle.id"); |
|
my %temp=('logout' => time); |
|
&Apache::lonnet::put('email_status',\%temp); |
&Apache::lonnet::log($sessionhash{'user.domain'}, |
&Apache::lonnet::log($sessionhash{'user.domain'}, |
$sessionhash{'user.name'}, |
$sessionhash{'user.name'}, |
$sessionhash{'user.home'}, |
$sessionhash{'user.home'}, |
Line 74 sub handler {
|
Line 76 sub handler {
|
# -------------------------------------------------------- Menu script and info |
# -------------------------------------------------------- Menu script and info |
|
|
my $windowinfo=&Apache::lonmenu::close(); |
my $windowinfo=&Apache::lonmenu::close(); |
|
# ---------------------------------------------------------------- Get handover |
|
&Apache::loncommon::get_unprocessed_cgi($ENV{'QUERY_STRING'},['handover']); |
|
my $switch=''; |
|
if ($ENV{'form.handover'}) { |
|
$switch='<meta HTTP-EQUIV="Refresh" CONTENT="0.5; url='. |
|
$ENV{'form.handover'}.'">'; |
|
} |
# --------------------------------------------------------------- Screen Output |
# --------------------------------------------------------------- Screen Output |
$r->print(<<ENDDOCUMENT); |
$r->print(<<ENDDOCUMENT); |
<html> |
<html> |
<head><title>The LearningOnline Network with CAPA Logout</title></head> |
<head><title>The LearningOnline Network with CAPA Logout</title> |
|
$switch |
|
</head> |
<body bgcolor="#FFFFFF"> |
<body bgcolor="#FFFFFF"> |
$windowinfo |
$windowinfo |
<h1>Goodbye!</h1></body> |
<h1>Goodbye!</h1></body> |
</html> |
</html> |
ENDDOCUMENT |
ENDDOCUMENT |
|
&Apache::lonnet::flushcourselogs(); |
return OK; |
return OK; |
} else { |
} else { |
$r->log_reason("Cookie $handle not valid", $r->filename); |
$r->log_reason("Cookie $handle not valid", $r->filename); |