[cpp-sp] branch main updated: Add chunk size setting.

Codeberg noreply at shibboleth.net
Tue Oct 6 15:14:52 UTC 2026


This is an automated email from the git hooks/post-receive script.

codeberg pushed a commit to branch main
in repository cpp-sp.

View the commit online:
https://codeberg.org/Shibboleth/cpp-sp/commit/e0558e46ead7c486a6d5d1b89c30ba1281a24ba6

The following commit(s) were added to refs/heads/main by this push:
     new e0558e46 Add chunk size setting.
e0558e46 is described below

commit e0558e46ead7c486a6d5d1b89c30ba1281a24ba6
Author: Scott Cantor <scott at restingparrotsoftware.com>
AuthorDate: Tue Oct 6 11:14:34 2026 -0400

    Add chunk size setting.
---
 shibsp/session/impl/CookieSessionCache.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/shibsp/session/impl/CookieSessionCache.cpp b/shibsp/session/impl/CookieSessionCache.cpp
index 8c8237c4..c0c3ca5f 100644
--- a/shibsp/session/impl/CookieSessionCache.cpp
+++ b/shibsp/session/impl/CookieSessionCache.cpp
@@ -70,11 +70,14 @@ namespace {
 
     static const char COOKIE_LIFETIME_PROP_NAME[] = "cookieLifetime";
     static const char CHUNKED_COOKIE_NAME_PROP_NAME[] = "chunkedCookieName";
+    static const char CHUNKED_COOKIE_SIZE_PROP_NAME[] = "chunkedCookieSize";
     static const char LAST_USED_COOKIE_NAME_PROP_NAME[] = "lastUsedCookieName";
 
     static unsigned int COOKIE_LIFETIME_PROP_DEFAULT = 24 * 3600;
-    static const char LAST_USED_COOKIE_NAME_PROP_DEFAULT[] = "__Host-shib_chk_ts";
     static const char CHUNKED_COOKIE_NAME_PROP_DEFAULT[] = "__Host-shib_chk";
+    static unsigned int CHUNKED_COOKIE_SIZE_PROP_DEFAULT = 3072;
+    static const char LAST_USED_COOKIE_NAME_PROP_DEFAULT[] = "__Host-shib_chk_ts";
+    
 };
 
 // Logging Macros
@@ -107,6 +110,7 @@ CookieSessionCache::CookieSessionCache(const ptree& pt)
     m_lastUsedCookieManager->setSameSite(getString(CookieManager::COOKIE_SAMESITE_PROP_NAME));
 
     m_chunkedCookieManager.reset(new CookieManager(getString(CHUNKED_COOKIE_NAME_PROP_NAME, CHUNKED_COOKIE_NAME_PROP_DEFAULT)));
+    m_chunkedCookieManager->setChunkSize(getUnsignedInt(CHUNKED_COOKIE_SIZE_PROP_NAME, CHUNKED_COOKIE_SIZE_PROP_DEFAULT));
     m_chunkedCookieManager->setCookieNamePolicy(RequestMapper::SESSION_COOKIE_CHUNKED_NAME_PROP_NAME, true);
     m_chunkedCookieManager->setSecure(getBool(CookieManager::COOKIE_SECURE_PROP_NAME, CookieManager::COOKIE_SECURE_PROP_DEFAULT));
     m_chunkedCookieManager->setHttpOnly(getBool(CookieManager::COOKIE_HTTPONLY_PROP_NAME, CookieManager::COOKIE_HTTPONLY_PROP_DEFAULT));

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the commits mailing list