Understanding how cross-domain cookies work within the IM18+ verification system. Learn the technical implementation details and security considerations.
IM18+ uses a sophisticated cross-domain cookie system to enable "verify once, access everywhere" functionality while maintaining user privacy. Here's how it works technically:
Unlike complex multi-cookie systems, IM18+ uses just two simple cookies:
age_verified
- Boolean verification flagverification_timestamp
- When verification occurredPartner site loads invisible iframe pointing to IM18+ verification endpoint
IM18+ service checks for existing verification cookies in its domain
Verification status sent back to partner site via secure postMessage
Partner site shows appropriate content based on verification status
Cookies are set only on verify.im18.app domain, preventing tampering from partner sites.
Automatic 30-day expiration ensures verification doesn't persist indefinitely.
Only verification flag and timestamp stored - no names, emails, or identifying information.
Cookies use HttpOnly and Secure flags for protection against XSS and interception.
<!-- Invisible verification iframe -->
<iframe id="verification-check"
src="https://verify.im18.app/api/check-anonymous.php"
style="display: none;"></iframe>
<script>
// Listen for verification response
window.addEventListener('message', function(event) {
if (event.origin !== 'https://verify.im18.app') return;
if (event.data.type === 'verification_result') {
if (event.data.verified) {
showMainContent();
} else {
showAgeVerificationModal();
}
}
});
</script>
// Posted back to partner site
{
"type": "verification_result",
"verified": true,
"data": {
"verified_at": "2025-01-21T12:00:00Z",
"expires_at": "2025-02-20T12:00:00Z",
"expires_in": 2592000,
"service": "IM18+",
"privacy": "zero-knowledge"
}
}
The system works across all modern browsers and handles third-party cookie restrictions gracefully:
Minimal performance overhead with smart implementation:
The cookie system is designed with privacy regulations in mind:
© 2025 IM18+ Age Verification System. Secure, federated, privacy-focused.