[Koha-bugs] [Bug 28507] Create Koha::Session wrapper to create consistent sessions throughout Koha
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Thu Jun 3 03:38:19 CEST 2021
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=28507
--- Comment #2 from David Cook <dcook at 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.
More information about the Koha-bugs
mailing list