X-Git-Url: http://wagnertech.de/gitweb/gitweb.cgi/mfinanz.git/blobdiff_plain/25652024d1f0309cf7817ee66d412e468435badf..c8c6d1e8cc86565fb0e0fd290317f28e76bbff3b:/SL/Auth.pm diff --git a/SL/Auth.pm b/SL/Auth.pm index a11fbafb0..2bd2d09c0 100644 --- a/SL/Auth.pm +++ b/SL/Auth.pm @@ -489,7 +489,7 @@ sub restore_session { if (!$cookie || $cookie->{is_expired} || ($cookie->{ip_address} ne $ENV{REMOTE_ADDR})) { $self->destroy_session(); $main::lxdebug->leave_sub(); - return SESSION_EXPIRED; + return $cookie ? SESSION_EXPIRED : SESSION_NONE; } $query = qq|SELECT sess_key, sess_value FROM auth.session_content WHERE session_id = ?|;