seb-win-refactoring: In Moodle, the cookie can have a prefix. If one is set, the session sent to SEB server is not correct.
Cookies in Moodle can have customizable prefixes.
Unfortunately, in our place, one is set.
In line 416 of ResourceHandler.cssBrowser\handlers\ResourceHandler.cs](https://github.com/SafeExamBrowser/seb-win-refactoring/blob/d9662ec31e3c0b32e75e7eccd84a7a11b35f0b43/SafeExamBrowser.Browser/Handlers/ResourceHandler.cs#L416) the message.Headers.Add command hardcodedly does transmit
"MoodleSession="
which omits that prefix, if set.
That leads to the UserId not being set, which results in a not finished handshake.
About this issue
- Original URL
- State: closed
- Created 3 years ago
- Comments: 15 (8 by maintainers)
Commits related to this issue
- SEBWIN-878, #848: Fixed session cookie name for user resolution with Moodle and SEB Server. — committed to SafeExamBrowser/seb-win-refactoring by dbuechel 3 years ago
Yes, it does, @dbuechel see https://github.com/moodle/moodle/blob/b798633ae074eddd581724d0c5b1cdba01b9d909/lib/classes/session/manager.php#L335
(just noticed that technically, this is a “suffix”, not a “prefix” 😂)