In contrast to sso.tugraz.at (or auth.tugraz.at), where you cannot log in generally, but where you are redirected by services connected to the SSO system to log in, you can access the page logout.tugraz.at directly (and should therefore save it as a favorite, for example).
#!/usr/bin/perl
use CGI qw/:standard/;
use URI::Escape;
$sso = '/';
# auth.tugraz.at ?
# $sso = 'https://logout.tugraz.at/';
# central logout calls this PERL script
$cookies = $ENV{HTTP_COOKIE};
$cookies =~ s/ //g;
@cookiesArray = split(/\;/, $cookies);
foreach $cookieString (@cookiesArray) {
if ("$cookieString" =~ "_shibsession_") {
($shib,$value) = split (/=/,$cookieString);
}
}
my $cgi = CGI->new;
my $cookie = $cgi->cookie (
-name => $shib,
-value => '',
-expires => '-1d'
);
print $cgi->redirect(-location => $sso, -cookie => $cookie);