$_SERVER['REMOTE_ADDR'], 'useragent' => Main::cleanString($_SERVER['HTTP_USER_AGENT']), 'userid' => $userID, 'skey' => $session, 'started' => time(), 'expire' => time() + 604800, 'remember' => $remember ]); // Return the session key return $session; } // Check session data (expiry, etc.) public static function checkSession($userId, $sessionId) { } }