Diff -- /var/www/vhosts/3dshawn.com/abforge.3dshawn.com/logout.cgi

O Operator
Diff

/var/www/vhosts/3dshawn.com/abforge.3dshawn.com/logout.cgi

added on local at 2026-07-01 16:01:24

Added
+24
lines
Removed
-0
lines
Context
0
unchanged
Blobs
from
to a53ebcca0d26
Restore this content →
Unified diff
Naive LCS-based line diff. Additions in emerald, deletions in rose. Both sides decompressed live from BLOB_STORE.
1#!/usr/bin/perl
2#======================================================================
3# ABForge — logout
4# Revokes the current session and clears the cookie. 302 to /index.cgi.
5#======================================================================
6use strict;
7use warnings;
8
9use lib '/var/www/vhosts/abforge.com/httpdocs';
10use CGI;
11use MODS::Login;
12
13my $auth = MODS::Login->new;
14
15$|=1;
16
17# Verify session (so we can revoke it server-side too).
18my $userinfo = $auth->login_verify();
19$auth->logout_exec($userinfo) if $userinfo;
20
21# Clear cookie + bounce home.
22print $auth->clear_cookie_header();
23print "Status: 302 Found\nLocation: /index.cgi\n\n";
24exit;