# Class: SessionStorage

## coreutils. SessionStorage

#### new SessionStorage()

  Static helper class for session storage

### Methods

#### <static> clear()

  Clear all saved items in session storage

  ##### Returns:

  returns self for chaining
  Type
    coreutils.SessionStorage

#### <static> getItem(id)

  Get saved value

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `id` | string |

  ##### Returns:

  Type
    object | null

#### <static> hasItem(id)

  Check if there exists saved item

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `id` | string |

  ##### Returns:

  Type
    boolean

#### <static> isSupported()

  Check if session sotrage is supported https://developer.mozilla.org/en-US/docs/Web/API/Web_Storage_API/Using_the_Web_Storage_API

  ##### Returns:

  Type
    boolean

#### <static> removeItem(id)

  Remove stored item

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `id` | string |

  ##### Returns:

  returns self for chaining
  Type
    coreutils.SessionStorage

#### <static> setItem(id, value)

  Set saved value

  ##### Parameters:

  Name | Type | Description
  --- | --- | ---
  `id` | string |
  `value` | object |

  ##### Returns:

  returns self for chaining
  Type
    coreutils.SessionStorage

#### Search results