---
name: "Jifty::Web::Session::ApacheSession"
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::ApacheSession"
---

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

Jifty Sessions based on Apache::Session

## NAME

Jifty::Web::Session::ApacheSession - Jifty Sessions based on Apache::Session

## SYNOPSIS

In your *etc/config.yml*, using the Apache::Session::File backend:

```
  framework:
    Web:
      SessionClass: Jifty::Web::Session::ApacheSession
      SessionBackend: File
      SessionOptions:
        Directory: /tmp/sessions
        LockDirectory: /var/lock/sessions
```

Or with Apache::Session::Memorycached backend:

```
  framework:
    Web:
      SessionClass: Jifty::Web::Session::ApacheSession
      SessionBackend: Memorycached
      SessionOptions: { servers: [ '127.0.0.1:11211' ] }
```

### new

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

### id

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

### create

Creates a new session.

### 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.

### remove\_all

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

### continuations

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