X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDispatcher.pm;h=b827acc7d8ba4d373b10c4a200da7cd6fdb9b5ed;hb=a09455275f319514bc547b73113917151c6a97ba;hp=3bf120668f919f0d3b17cb83308795f57f981547;hpb=ddee5ea032f534c17d0692826f35d184d282f6c6;p=kivitendo-erp.git diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 3bf120668..b827acc7d 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -84,6 +84,7 @@ sub pre_startup_setup { { no warnings 'once'; $::lxdebug = LXDebug->new; + $::auth = SL::Auth->new; $::form = undef; %::myconfig = (); %::called_subs = (); # currently used for recursion detection @@ -159,7 +160,6 @@ 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; @@ -234,8 +234,7 @@ sub handle_request { $::myconfig = (); Form::disconnect_standard_dbh; $::auth->expire_session_keys->save_session; - $::auth->dbdisconnect; - $::auth = undef; + $::auth->reset; $::lxdebug->end_request; $::lxdebug->leave_sub;