https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28507 --- Comment #2 from David Cook <dcook@prosentient.com.au> --- For instance: Koha::Session->set_user_session({ user => $patron, session => $session, extensions => { desk_id => $desk_id, shibboleth => $shibboleth, }, }); We'd take both the session object and data to put into it. The $session object would have 'ip' and 'lasttime' set automatically. Likewise: Koha::Session->set_userenv({ session => $session, extensions => { id => $userid, } }); The above would use session data or let you override particular key/value pairs using extensions. Although personally I find the concept of C4::Context->userenv to be unnecessary. You just need sessions, but Koha has a dependency on C4::Context->userenv... -- You are receiving this mail because: You are the assignee for the bug. You are watching all bug changes.