diff options
author | Yorhel <git@yorhel.nl> | 2011-01-27 10:11:52 +0100 |
---|---|---|
committer | Yorhel <git@yorhel.nl> | 2011-01-27 10:11:52 +0100 |
commit | 08d3dffe2dc6b955f2e10629079d5ae5c32f7183 (patch) | |
tree | 4a2c8f5a2fa52f73b94d4cab610f71ab3234a3c6 /data | |
parent | 01c4028bfa067546af572de06789cc4121b1ffbc (diff) |
TUWF: Replaced resHeader('Set-Cookie', ..) with resCookie()
Way more convenient. This also fixes several bugs with the previous
commit, since the cookie_prefix wasn't used for *all* cookies. Since it
is now, the 'l10n' cookie now also respects the configured prefix, which
means some people will have to set their default language again.
Configuration changes: 'cookie_domain' option has been removed, the
'cookie_defaults' option of TUWF should now be used.
Diffstat (limited to 'data')
-rw-r--r-- | data/global.pl | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/data/global.pl b/data/global.pl index 7b6a4154..971db80a 100644 --- a/data/global.pl +++ b/data/global.pl @@ -9,7 +9,11 @@ our %O = ( db_login => [ 'dbi:Pg:dbname=vndb', 'vndb', 'passwd' ], debug => 1, logfile => $ROOT.'/data/log/vndb.log', - cookie_prefix => 'vndb_', + cookie_prefix => 'vndb_', + cookie_defaults => { + domain => '.vndb.org', + path => '/', + }, ); @@ -19,7 +23,6 @@ our %S = (%S, url => 'http://vndb.org', url_static => 'http://s.vndb.org', skin_default => 'angel', - cookie_domain => '.vndb.org', global_salt => 'any-private-string-here', form_salt => 'a-different-private-string-here', regen_static => 0, |