MCPcopy Create free account
hub / github.com/ClassiCube/ClassiCube / Session_Load

Function Session_Load

src/LWeb.c:714–725  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

712
713#ifdef CC_BUILD_NETWORKING
714void Session_Load(void) {
715 cc_string session; char buffer[3072];
716 if (loadedSession) return;
717 loadedSession = true;
718 /* Increase from max 512 to 2048 per entry */
719 StringsBuffer_SetLengthBits(&ccCookies, 11);
720
721 String_InitArray(session, buffer);
722 Options_GetSecure(LOPT_SESSION, &session);
723 if (!session.length) return;
724 EntryList_Set(&ccCookies, &sessionKey, &session, '=');
725}
726
727void Session_Save(void) {
728 cc_string session = EntryList_UNSAFE_Get(&ccCookies, &sessionKey, '=');

Callers 1

Launcher_SetupFunction · 0.85

Calls 3

Options_GetSecureFunction · 0.85
EntryList_SetFunction · 0.85

Tested by

no test coverage detected