---
name: "Jifty::Web::Session::ClientSide"
section: "3pm"
platform: "linux"
package: "libjifty-perl"
version: "1.10518+dfsg-2"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/Jifty::Web::Session::ClientSide"
---

# Jifty::Web::Session::ClientSide(3pm)

Session handler for client-side sessions

## NAME

Jifty::Web::Session::ClientSide - Session handler for client-side sessions

## SYNOPSIS

In your *etc/config.yml*:

```
  framework:
    Web:
      SessionClass: Jifty::Web::Session::ClientSide
      SessionSecret: secret_passphrase
```

### new

Returns a new, empty session handler, subclassing Jifty::Web::Session.

### \_cipher

Accessor to the underlying Crypt::CBC object that encapsulates the server-side secret.

### id

Returns the session's id if it has been loaded, or `"undef"` otherwise.

### create

Since there is no server-side storage, this simply clears the object's local state.

### load \[ID\]

Load up the current session from the given `"ID"`, or the appropriate cookie (see "cookie\_name" in Jifty::Web::Session) otherwise.

If both of those fail, creates a session in memory.

### get KEY \[TYPE\]

See "get" in Jifty::Web::Session.

### set KEY =\> VALUE, \[TYPE\]

See "set" in Jifty::Web::Session.

### remove KEY, \[TYPE\]

See "remove" in Jifty::Web::Session.

### continuations

See "continuations" in Jifty::Web::Session.

### unload

See "unload" in Jifty::Web::Session.

### flush

Outputs the client-side session as one or more cookies.
