Introduced : BIG-IP_v11.0.0
Gets a new session identifier. This identifier is a value which
uniquely identifies a user session. Once retrieved by a client, it may
be included in any subsequent requests to notify the iControl portal
that a specific request should be executed in the context of the
session associated with that identifier. Use of this identifier is
completely optional. If it is not included in an iControl request, the
session key defaults to the user name. Note that this is even true if
you have retrieved a unique session identifier. It is also possible to
have more than one such unique session identifier active at the same
time. However, it is important to understand that each session key,
whether the unique identifier or the default user name represent
distinct sessions. Changing a session variable in one session does not
effect the variable in any other session. On the other hand, if
different clients have the same session key and one changes a session
variable, the others will see it. The important distinction is not the
client being run and not the user running it, but the session key for
each request. When used, this session identifier must be passed to the
iControl portal via either an HTTP header or a SOAP header element.
There is no preference for which transport is used, as the portal will
pick up either. The client is free to use whichever is easier to work
with in the client&aposs SOAP package. If for some reason, conflicting
values are set in the HTTP header and SOAP header element, the SOAP
header element value will take precedence. The HTTP header holding the
session identifier is named “X-IControl-Session”. If used, its value
must be set to the text representation of the session identifier. Thus
in the HTTP request, the header would look like, e.g.,
X-iControl-Session: 14. Most SOAP packages include a straightforward
way to add an HTTP header to the HTTP request, so reference your
documentation. The SOAP header element is named “session”. If used,
its value must be a SOAP integer element holding the session
identifier. If this client is intended to work with older versions of
iControl, be aware that the mustUnderstand SOAP header element
attribute must be set to 0. Reference your SOAP package documentation
for details for adding a SOAP header to a request.
Sample Code
The BIG-IP API Reference documentation contains community-contributed content. F5 does not monitor
or control community code contributions. We make no guarantees or warranties regarding the available code,
and it may contain errors, defects, bugs, inaccuracies, or security vulnerabilities. Your access to and use of any
code available in the BIG-IP API reference guides is solely at your own risk.