summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-01 14:00:42 +0000
committerchristopherm <christopherm@4979c152-3d1c-0410-bac9-87ea11338e46>2006-09-01 14:00:42 +0000
commit2914ad18d8a323649aab127020dd0e290a5ead20 (patch)
treeaacccba5147a820b368810d9aa491f82cada59e3
parent1d19ab4d4b3b72b6728a944d8830a61836667222 (diff)
deleting session cookie on logout
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@8 4979c152-3d1c-0410-bac9-87ea11338e46
-rwxr-xr-xbin/mozilla/login.pl10
1 files changed, 5 insertions, 5 deletions
diff --git a/bin/mozilla/login.pl b/bin/mozilla/login.pl
index 6d690984..00ecf829 100755
--- a/bin/mozilla/login.pl
+++ b/bin/mozilla/login.pl
@@ -329,12 +329,12 @@ sub login {
sub logout {
- $form->{callback} = "$form->{script}?path=$form->{path}&login=$form->{login}";
-
- $form->{endsession} = 1;
-
- $form->redirect;
+ $form->{callback} = "$form->{script}?path=$form->{path}&login=$form->{login}";
+ $form->{endsession} = 1;
+ #delete the cookie in the browser manually (can't use session_destroy here unfortunately)
+ print qq|Set-Cookie: LedgerSMB=; path=/;\n|;
+ $form->redirect;
}