music-generation/clear_user_session.php
DJP c62475d8f0 Enhanced webhook tracking with SSO user information
- Updated webhook to capture SSO user details (email, name, user ID)
- Added comprehensive metadata tracking for music generation
- Enhanced webhook payload with generation mode and technical details
- Created session management endpoints for SSO user data
- Updated client identification to specify 'Music Generation'
- Added IP address and user agent tracking for security/analytics
- Documented enhanced webhook structure in README
- Added session handling for user tracking across requests

When SSO is enabled, webhooks will now include:
- User email and name from SSO authentication
- Generation mode (Simple vs Advanced with Composition Plan)
- Enhanced technical metadata for better tracking
- Proper client identification for music generation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-08-19 10:52:20 -04:00

19 lines
No EOL
405 B
PHP

<?php
// Clear SSO user session data
session_start();
// Clear all SSO-related session data
unset($_SESSION['sso_user_email']);
unset($_SESSION['sso_user_name']);
unset($_SESSION['sso_user_id']);
unset($_SESSION['sso_login_timestamp']);
// Log session cleared
error_log("SSO user session cleared");
echo json_encode([
'success' => true,
'message' => 'User session cleared successfully'
]);
?>