Move to a "prefixed" model for metadata attributes and separate from session.
[shibboleth/sp.git] / shibsp / SessionCache.cpp
index 6f05c85..8ff5c00 100644 (file)
@@ -48,14 +48,14 @@ void SHIBSP_API shibsp::registerSessionCaches()
 #endif\r
 }\r
 \r
-SessionCache::SessionCache(const DOMElement* e) : m_cacheTimeout(60*60*8)\r
+SessionCache::SessionCache(const DOMElement* e, unsigned long defaultTimeout) : m_cacheTimeout(defaultTimeout)\r
 {\r
     if (e) {\r
         const XMLCh* tag=e->getAttributeNS(NULL,cacheTimeout);\r
         if (tag && *tag) {\r
             m_cacheTimeout = XMLString::parseInt(tag);\r
             if (!m_cacheTimeout)\r
-                m_cacheTimeout=60*60*8;\r
+                m_cacheTimeout=defaultTimeout;\r
         }\r
     }\r
 }\r