<?php
session_start();

// Update session activity time
if (isset($_SESSION['last_activity'])) {
    $_SESSION['last_activity'] = time();
    echo json_encode(['success' => true, 'message' => 'Activity updated']);
} else {
    echo json_encode(['success' => false, 'message' => 'No active session']);
}
?>