issue #19291: using real session data in functor