/** * Get / Set the user agent * * @param string $userAgent Set the user agent * @return string Current user agent */ public static function userAgent($userAgent = null) { if ($userAgent) { static::$_userAgent = $userAgent; } if (empty(static::$_userAgent)) { Session::init(static::$path); } return static::$_userAgent; }