X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;ds=sidebyside;f=SL%2FDispatcher.pm;h=76fcf6fb7b23f67b5dc6da8966f6f8a466323418;hb=417cc3a7e5d4a96713b71b1d723196bddeeb01cc;hp=47c2e2a35cb41d3f56edf222019303445441f236;hpb=915e943a8fa8ab2a32576d4609632d598898cf20;p=kivitendo-erp.git diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 47c2e2a35..76fcf6fb7 100644 --- a/SL/Dispatcher.pm +++ b/SL/Dispatcher.pm @@ -180,9 +180,9 @@ sub handle_request { $::form->{script} = "controller.pl"; } - pre_request_checks(); - eval { + pre_request_checks(); + my $session_result = $::auth->restore_session; $::auth->create_or_refresh_session; @@ -231,13 +231,14 @@ sub handle_request { }; # cleanup + $::auth->expire_session_keys->save_session; + $::auth->expire_sessions; + $::auth->reset; + $::locale = undef; $::form = undef; $::myconfig = (); Form::disconnect_standard_dbh; - $::auth->expire_session_keys->save_session; - $::auth->expire_sessions; - $::auth->reset; $::lxdebug->end_request; $::lxdebug->leave_sub;