https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28507

--- Comment #2 from David Cook <[email protected]> ---
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.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to