> ## Documentation Index
> Fetch the complete documentation index at: https://docs.kinetica.com/llms.txt
> Use this file to discover all available pages before exploring further.

# gpudb::DropSessionRequest

> gpudb::DropSessionRequest — Kinetica C++ API

A set of parameters for [GPUdb::dropSession](https://docs.kinetica.com/content/api/cpp/classgpudb_1_1GPUdb/dropsession.md#a87e3605b58acf4ec17c20a6d687e06a2). [More...](#details)`#include <gpudb/protocol/drop_session.h>`

<table>
  <tr>
    <td colSpan="2">
      ## Public Member Functions
    </td>
  </tr>

  <tr id="r_a1284090d9a01273c4b7d5ab130d58ae5">
    <td align="right" valign="top"> </td>
    <td valign="bottom">[DropSessionRequest](#a1284090d9a01273c4b7d5ab130d58ae5) ()</td>
  </tr>

  <tr>
    <td> </td>
    <td>Constructs a [DropSessionRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionRequest.md) object with default parameters. \
    </td>
  </tr>

  <tr>
    <td colSpan="2"> </td>
  </tr>

  <tr id="r_a6b208e2b7aeae5baa2f03a309a5f41ab">
    <td align="right" valign="top"> </td>
    <td valign="bottom">[DropSessionRequest](#a6b208e2b7aeae5baa2f03a309a5f41ab) (const std::map\< std::string, std::string > \&options\_)</td>
  </tr>

  <tr>
    <td> </td>
    <td>Constructs a [DropSessionRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionRequest.md) object with the specified parameters. \
    </td>
  </tr>

  <tr>
    <td colSpan="2"> </td>
  </tr>
</table>

<table>
  <tr>
    <td colSpan="2">
      ## Public Attributes
    </td>
  </tr>

  <tr id="r_aee1b3acbb91fe30d9f8148524afc1450">
    <td align="right" valign="top">std::map\< std::string, std::string > </td>
    <td valign="bottom">[options](#aee1b3acbb91fe30d9f8148524afc1450)</td>
  </tr>

  <tr>
    <td> </td>
    <td>Optional parameters. \
    </td>
  </tr>

  <tr>
    <td colSpan="2"> </td>
  </tr>
</table>

## Detailed Description

A set of parameters for [GPUdb::dropSession](https://docs.kinetica.com/content/api/cpp/classgpudb_1_1GPUdb/dropsession.md#a87e3605b58acf4ec17c20a6d687e06a2). Ends the client session named by the X-Kinetica-Session HTTP header of this request, dropping every session temp table (a table created in SQL as #name) that belongs to it. Objects outside the session that depend on those tables are invalidated, not dropped.A client sends its session ID in the X-Kinetica-Session HTTP header to every endpoint (e.g., /execute/sql), and needs to call this endpoint only when a response's info map has carried session\_id\_used set to true.Only the user that owns the session, or a system administrator, may drop it. Dropping an unknown session is a no-op. Definition at line [28](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h#L28) of file [drop\_session.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h).

## Constructor & Destructor Documentation

## [◆ ](#a1284090d9a01273c4b7d5ab130d58ae5)DropSessionRequest() \[1/2]

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>gpudb::DropSessionRequest::DropSessionRequest </td>
          <td>(</td>

          <td />

          <td>)</td>

          <td />
        </tr>
      </table>
    </td>

    <td> inline </td>
  </tr>
</table>

Constructs a [DropSessionRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionRequest.md) object with default parameters. Definition at line [33](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h#L33) of file [drop\_session.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h).

## [◆ ](#a6b208e2b7aeae5baa2f03a309a5f41ab)DropSessionRequest() \[2/2]

<table>
  <tr>
    <td>
      <table>
        <tr>
          <td>gpudb::DropSessionRequest::DropSessionRequest </td>
          <td>(</td>
          <td>const std::map\< std::string, std::string > &</td>
          <td>options\_</td>
          <td>)</td>

          <td />
        </tr>
      </table>
    </td>

    <td> inline </td>
  </tr>
</table>

Constructs a [DropSessionRequest](https://docs.kinetica.com/content/api/cpp/structgpudb_1_1DropSessionRequest.md) object with the specified parameters.&#x20;

Parameters

<table>
  <tr>
    <td>\[in]</td>
    <td>options\_</td>
    <td>Optional parameters. The default value is an empty map. </td>
  </tr>
</table>

Definition at line [45](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h#L45) of file [drop\_session.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h).

## Member Data Documentation

## [◆ ](#aee1b3acbb91fe30d9f8148524afc1450)options

<table>
  <tr>
    <td>std::map\<std::string, std::string> gpudb::DropSessionRequest::options</td>
  </tr>
</table>

Optional parameters. The default value is an empty map. Definition at line [53](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h#L53) of file [drop\_session.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h).

***

The documentation for this struct was generated from the following file:

<ul>
  <li>gpudb/protocol/[drop\_session.h](https://github.com/kineticadb/kinetica-api-cpp/blob/master/gpudb/protocol/drop_session.h)</li>
</ul>


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.