Retrieving Sessions List

Use the get operation to retrieve list of currently opened CP sessions and information on each opened session.

In this chapter:

Request Packet

Response Packet Structure

Samples

 

Request Packet

A request XML packet retrieving list of currently opened CP sessions and information on each opened session includes the get operation node:

<packet version="1.5.0.0">
<session>
   <get/>
</session>
</packet>

 

The get node is required. Data type: none.

 

Response Packet Structure

The get node of the output XML packet is presented by type SessionGetOutputType (updater.xsd) and structured as follows:

 

 

Samples

A request XML packet retrieving list of currently opened CP sessions and information on each opened session looks as follows:

<packet version="1.5.0.0">
<session>
   <get/>
</session>
</packet>

Response:

<packet version="1.5.0.0">
  <session>
    <get>
      <result>
        <status>ok</status>
        <session>
          <id>6a17d01f5e1925601faa86ad22ada6ff</id>
          <type>admin</type>
          <ip-address>192.0.2.1</ip-address>
          <login>admin</login>
          <login-time>2007-02-20T05:21:00</login-time>
          <idle>2007-02-20T05:37:42</idle>
        </session>
        <session>
          <id>f15cabb0a544df13aee1ee5b55de0530</id>
          <type>JimmyJoe</type>
          <ip-address>192.0.2.2</ip-address>
          <login>client</login>
          <login-time>2007-02-21T23:42:00</login-time>
          <idle>2007-02-21T23:43:22</idle>
        </session>
      </result>
    </get>
  </session>
</packet>