aura/session

Provides session management functionality, including lazy session starting, session segments, next-request-only ("flash") values, and CSRF tools.

Package info

github.com/auraphp/Aura.Session

pkg:composer/aura/session

Statistics

Installs: 1 240 064

Dependents: 78

Suggesters: 2

Stars: 204

Open Issues: 4

6.0.0 2026-02-25 07:46 UTC

Requires

  • php: ^8.1

Requires (Dev)

Suggests

  • ext-openssl: OpenSSL generates the best secure CSRF tokens.

Provides

None

Conflicts

None

Replaces

None

MIT fb2751a4256d6f69556a55fc781b8feff8d96a88

sessionflashflash messagecsrfsessions


README

Provides session management functionality, including lazy session starting, session segments, next-request-only ("flash") values, and CSRF tools.

Foreword

Installation

This library requires PHP 8.1 or later. It has been tested on PHP 8.1-8.5. We recommend using the latest available version of PHP as a matter of principle. It has no userland dependencies.

It is installable and autoloadable via Composer as aura/session.

Quality

👁 Scrutinizer Code Quality
👁 codecov
👁 Continuous Integration

To run the unit tests at the command line, issue composer install and then phpunit at the package root. This requires Composer to be available as composer, and PHPUnit to be available as phpunit.

This library attempts to comply with PSR-1, PSR-12, and PSR-4. If you notice compliance oversights, please send a patch via pull request.

Community

To ask questions, provide feedback, or otherwise communicate with the Aura community, please join our Google Group or follow @auraphp on X.

Documentation

This package is fully documented here.