From c132d67d538e868f27f98bbb2f3e35c6826a87ac Mon Sep 17 00:00:00 2001 From: Kyle M Hall Date: Fri, 18 May 2018 08:40:33 -0400 Subject: [PATCH] Bug 18821 - Flush session after setting tracked_for_session --- C4/Auth.pm | 1 + 1 file changed, 1 insertion(+) diff --git a/C4/Auth.pm b/C4/Auth.pm index 00e92ccab8..9554cd8d6e 100644 --- a/C4/Auth.pm +++ b/C4/Auth.pm @@ -2092,6 +2092,7 @@ sub track_login_for_session { if ( $userid && $session && !$session->param('tracked_for_session') ) { $session->param( 'tracked_for_session', 1 ); + $session->flush(); # track_login also depends on pref TrackLastPatronActivity my $patron = Koha::Patrons->find( { userid => $userid } ); -- 2.15.1 (Apple Git-101)