From 2914ad18d8a323649aab127020dd0e290a5ead20 Mon Sep 17 00:00:00 2001 From: christopherm Date: Fri, 1 Sep 2006 14:00:42 +0000 Subject: deleting session cookie on logout git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@8 4979c152-3d1c-0410-bac9-87ea11338e46 --- bin/mozilla/login.pl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'bin/mozilla') 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; } -- cgit v1.2.3