summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authoreinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-08-14 15:25:48 +0000
committereinhverfr <einhverfr@4979c152-3d1c-0410-bac9-87ea11338e46>2008-08-14 15:25:48 +0000
commitf725fa7712cbc53bc6bc9285ecfad3777f870a52 (patch)
tree96452e692a0073cd60b95aaea4a2cb324d11983e /scripts
parentd89f332ed579df8ceb408bfec995da9ac4c1c573 (diff)
Applying patch 2013331 from Jeffk on configurable cookie names
git-svn-id: https://ledger-smb.svn.sourceforge.net/svnroot/ledger-smb/trunk@2261 4979c152-3d1c-0410-bac9-87ea11338e46
Diffstat (limited to 'scripts')
-rw-r--r--scripts/login.pl4
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/login.pl b/scripts/login.pl
index 02a188cf..ea0cf652 100644
--- a/scripts/login.pl
+++ b/scripts/login.pl
@@ -47,7 +47,7 @@ sub authenticate {
if ($request->{dbh} && $request->{next}) {
print "Content-Type: text/html\n";
- print "Set-Cookie: LedgerSMB=Login; path=$path\n";
+ print "Set-Cookie: ${LedgerSMB::Sysconfig::cookie_name}=Login; path=$path\n";
print "Status: 302 Found\n";
print "Location: ".$path.$request->{next}."\n";
print "\n";
@@ -55,7 +55,7 @@ sub authenticate {
}
elsif ($request->{dbh} || $request->{log_out}){
print "Content-Type: text/html\n";
- print "Set-Cookie: LedgerSMB=Login; path=$path\n";
+ print "Set-Cookie: ${LedgerSMB::Sysconfig::cookie_name}=Login; path=$path\n";
print "Status: 200 Success\n\n";
if ($request->{log_out}){
exit;