mirror of
				https://github.com/billz/raspap-webgui.git
				synced 2025-03-01 10:31:47 +00:00 
			
		
		
		
	Fix: correctly evaluate session status
This commit is contained in:
		@@ -10,7 +10,7 @@ $lastActivity = $_SESSION['lastActivity'] ?? time();
 | 
			
		||||
$sessionLifetime = time() - $lastActivity;
 | 
			
		||||
$status = $sessionLifetime >= RASPI_SESSION_TIMEOUT ? 'session_expired' : 'active';
 | 
			
		||||
 | 
			
		||||
if ($status = 'session_expired') {
 | 
			
		||||
if ($status === 'session_expired') {
 | 
			
		||||
    session_unset(); // unset all session variables
 | 
			
		||||
    session_destroy(); // destroy the session
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user