From ad02e552df4beb1dfc82f45c5d7eaf47f3f54003 Mon Sep 17 00:00:00 2001 From: christopherm Date: Fri, 1 Sep 2006 14:24:34 +0000 Subject: unlink of adminhash and cookie delete was at the wrong place, should be before redirect git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@10 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/mozilla/admin.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin') diff --git a/bin/mozilla/admin.pl b/bin/mozilla/admin.pl index 77a33aae..e7021d5a 100755 --- a/bin/mozilla/admin.pl +++ b/bin/mozilla/admin.pl @@ -129,9 +129,9 @@ sub login { sub logout { $form->{callback} = "$form->{script}?path=$form->{path}&endsession=1"; - $form->redirect($locale->text('You are logged out')); unlink "$userspath/adminhash"; print qq|Set-Cookie: LedgerSMB=; path=/;\n|; + $form->redirect($locale->text('You are logged out')); } -- cgit v1.2.3