-
Notifications
You must be signed in to change notification settings - Fork 0
Session & Authentication
liseli edited this page Feb 19, 2026
·
1 revision
-
Session Creation:
- User visits site
- No cookie exists
-
DSession::__construct()generates UUID - Session record created in MySQL
- Cookie set:
htcatalog=UUID.TIMESTAMP.HASH
-
Session Persistence:
- User makes subsequent requests
- Cookie sent with request
-
DSession::__construct()reads cookie - Session data loaded from MySQL
- Session extended (expires updated)
-
Session Data Storage:
$session->set('country', 'US'); // Store $country = $session->get('country'); // Retrieve $session->delete('country'); // Remove
-
Session Destruction:
$session->kill(); // Deletes cookie and DB record
Two-Level Authentication:
-
Application-Level (VFSession)
- Managed by catalog application
- Stores preferences, search history
- Cookie:
htcatalog
-
HathiTrust-Level (HTStatus)
- Managed by Shibboleth SSO
- Stores institutional affiliation, access rights
- Cookie:
HTstatus - Separate authentication system (not managed by catalog)