X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDispatcher.pm;h=3bf120668f919f0d3b17cb83308795f57f981547;hb=5dd469a517459d54610d9999f1b9c68a5ff29a73;hp=55d238022a0b86d623dd4f0176cdfdb747dec3b8;hpb=8d8fc8dd372e0883e386cb7cecf1483a6f73d1cb;p=kivitendo-erp.git diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 55d238022..3bf120668 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -84,7 +84,6 @@ sub pre_startup_setup { { no warnings 'once'; $::lxdebug = LXDebug->new; - $::auth = SL::Auth->new; $::form = undef; %::myconfig = (); %::called_subs = (); # currently used for recursion detection @@ -160,6 +159,7 @@ sub handle_request { $::cgi = CGI->new(''); $::locale = Locale->new($::lx_office_conf{system}->{language}); $::form = Form->new; + $::auth = SL::Auth->new; %::called_subs = (); eval { ($routing_type, $script_name, $action) = _route_request($script_name); 1; } or return; @@ -202,7 +202,7 @@ sub handle_request { $::auth->set_session_value('login', $::form->{login}, 'password', $::form->{password}); $::auth->create_or_refresh_session; - $::auth->delete_session_value('FLASH')->save_session(); + $::auth->delete_session_value('FLASH'); delete $::form->{password}; if ($action) { @@ -233,7 +233,9 @@ sub handle_request { $::form = undef; $::myconfig = (); Form::disconnect_standard_dbh; + $::auth->expire_session_keys->save_session; $::auth->dbdisconnect; + $::auth = undef; $::lxdebug->end_request; $::lxdebug->leave_sub;