PHPackages                             akrabat/akrabat-session - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. akrabat/akrabat-session

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

akrabat/akrabat-session
=======================

A Zend Framework 2 module for configuring sessions

1.0(9y ago)134.5k7BSD-3-ClausePHPPHP &gt;=5.3.3

Since Nov 13Pushed 9y ago4 watchersCompare

[ Source](https://github.com/akrabat/AkrabatSession)[ Packagist](https://packagist.org/packages/akrabat/akrabat-session)[ Docs](https://github.com/akrabat/AkrabatSession)[ RSS](/packages/akrabat-akrabat-session/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (1)Dependencies (2)Versions (2)Used By (0)

\#AkrabatSession

This ZF2 module is intended to make it simple to change the settings of a session; specifically the most common change required is to set a name for the cookie used to hold the session id.

\##Installation

You have a number of choices for installing `AkrabatSession`:

### with Composer

[](#with-composer)

Add `"akrabat/akrabat-session": "dev-master"` to your `composer.json` file and run `php composer.phar update`.

### as a Git Submodule

[](#as-a-git-submodule)

Clone this project into your `./vendor/` directory:

```
    git submodule add git://github.com/akrabat/AkrabatSession.git vendor/AkrabatSession

```

You can also just clone the module into your `./vendor/` directory or download it via the 'Zip' button on github.

Configuration
-------------

[](#configuration)

Once you have installed AkrabatSession, you need to enable it by editing `config/application.config.php` and adding `AkrabatSession` to the `modules`section.

To configure the session as you required, add the following to your `config/autoload/global.php` file:

```
    'session' => array(
        'name' => 'MY_SESSION_NAME_HERE',
    ),

```

Add additional configuration keys as needed.

### Available configuration keys

[](#available-configuration-keys)

The available configuration options are in the `Zend\Session\Config\SessionConfig`and `Zend\Session\Config\StandardConfig` classes. Most map to the PHP level [session directives](http://www.php.net/manual/en/session.configuration.php)

Some of the more useful ones are:

- `name` - Name of the session
- `remember_me_seconds` - Number of seconds to make session sticky, when rememberMe() is called. Default is 2 weeks (1209600 seconds)
- `save_path` - By default, the path where the session files are created
- `cookie_httponly` - Marks the cookie as accessible only through the HTTP protocol.
- `use_only_cookies` - Specifies that only cookies are used and not session ids in URLs
- `cookie_secure` - Specifies that cookies should only be sent over secure connections

Note: `AkrabatSession` sets the `cookie_httponly` and `use_only_cookies` settings to true

Session storage and save handler classes
----------------------------------------

[](#session-storage-and-save-handler-classes)

If you need to set the SessionMangers's storage or save handler class, then simply create a ServiceManager alias of `session_storage` or `session_save_handler`.

###  Health Score

33

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 75% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

3474d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/33135?v=4)[Rob Allen](/maintainers/akrabat)[@akrabat](https://github.com/akrabat)

---

Top Contributors

[![akrabat](https://avatars.githubusercontent.com/u/33135?v=4)](https://github.com/akrabat "akrabat (9 commits)")[![jaydiablo](https://avatars.githubusercontent.com/u/136907?v=4)](https://github.com/jaydiablo "jaydiablo (3 commits)")

---

Tags

ZendFrameworksessionzf2

### Embed Badge

![Health badge](/badges/akrabat-akrabat-session/health.svg)

```
[![Health](https://phpackages.com/badges/akrabat-akrabat-session/health.svg)](https://phpackages.com/packages/akrabat-akrabat-session)
```

###  Alternatives

[zf-commons/zfc-base

A set of genetic (abstract) classes which are commonly used across multiple modules.

1441.1M25](/packages/zf-commons-zfc-base)[heartsentwined/zf2-cron

ZF2 cron module

596.8k](/packages/heartsentwined-zf2-cron)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
