code: def get_sessions(self, app_path):
          ''' Gets all currently active sessions for an application.
  
          Args:
              app_path (str) :
                  The configured application path for the application to return
                  sessions for.
  
          Returns:
              list[ServerSession]
  
          '''
          if app_path not in self._applications:
              raise ValueError("Application %s does not exist on this server" % app_path)
          return list(self._applications[app_path].sessionsf get_sessions(self, app_path):
          ''' Gets all currently active sessions for an application.
  
          Args:
              app_path (str) :
                  The configured application path for the application to return
                  sessions for.
  
          Returns:
              list[ServerSession]
  
          '''
          if app_path not in self._applications:
              raise ValueError("Application %s does not exist on this server" % app_path)
          return list(self._applications[app_path].sessions)
docs: Gets all currently active sessions for an application.
  
          Args:
              app_path (str) :
                  The configured application path for the application to return
                  sessions for.
  
          Returns:
              list[ServerSession]