X-Git-Url: http://wagnertech.de/git?a=blobdiff_plain;f=SL%2FDispatcher.pm;h=b485063421f6a68de0820b5d1be5f02b9c06ab6f;hb=606e7e2575ff6112e8e45acf0e74e87faa5cfa7c;hp=55d238022a0b86d623dd4f0176cdfdb747dec3b8;hpb=8d8fc8dd372e0883e386cb7cecf1483a6f73d1cb;p=kivitendo-erp.git diff --git a/SL/Dispatcher.pm b/SL/Dispatcher.pm index 55d238022..b48506342 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 @@ -157,6 +156,7 @@ sub handle_request { $self->unrequire_bin_mozilla; + $::auth = SL::Auth->new; $::cgi = CGI->new(''); $::locale = Locale->new($::lx_office_conf{system}->{language}); $::form = Form->new; @@ -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,6 +233,7 @@ sub handle_request { $::form = undef; $::myconfig = (); Form::disconnect_standard_dbh; + $::auth->expire_session_keys->save_session; $::auth->dbdisconnect; $::lxdebug->end_request;