# Class: SessionHandler

## vertx-web-js/session_handler~ SessionHandler

#### new SessionHandler()

  Source:
    - session_handler.js, line 30

### Methods

#### handle(arg0)

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `arg0` | RoutingContext |

  Source:
    - session_handler.js, line 40

#### setNagHttps(nag) → {SessionHandler}

  Set whether a nagging log warning should be written if the session handler is accessed over HTTP, not HTTPS

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `nag` | boolean | true to nag

  Source:
    - session_handler.js, line 70

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    SessionHandler

#### setSessionCookieName(sessionCookieName) → {SessionHandler}

  Set the session cookie name

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `sessionCookieName` | string | the session cookie name

  Source:
    - session_handler.js, line 85

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    SessionHandler

#### setSessionTimeout(timeout) → {SessionHandler}

  Set the session timeout

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `timeout` | number | the timeout, in ms.

  Source:
    - session_handler.js, line 54

  ##### Returns:

  a reference to this, so the API can be used fluently
  Type
    SessionHandler