PHPackages                             alanvdb/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. alanvdb/session

ActiveLibrary

alanvdb/session
===============

A basic PHP session system

v1.0.0(1y ago)011MITPHP

Since Aug 6Pushed 1y ago1 watchersCompare

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

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

Session
=======

[](#session)

A basic PHP session system.

Overview
--------

[](#overview)

The `Session` library provides a simple and extensible session management system for PHP applications. It allows you to start sessions, add, remove, and retrieve session variables, and manage session lifecycle operations like regeneration and invalidation.

Features
--------

[](#features)

- Simple and easy-to-use API
- PSR compliant
- Supports adding, removing, and retrieving session variables
- Handles session lifecycle operations like starting, regenerating, and invalidating sessions
- Customizable session management using a `SessionManager` class

Installation
------------

[](#installation)

To install the `Session` library, use Composer:

```
composer require alanvdb/session
```

Usage
-----

[](#usage)

Here is an example of how to use the `Session`:

```
