PHPackages                             rawphp/raw-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. [Framework](/categories/framework)
4. /
5. rawphp/raw-session

ActiveLibrary[Framework](/categories/framework)

rawphp/raw-session
==================

RawSession provides application session service, including flash messages and is used by RawPHP framework and other applications.

0320[1 issues](https://github.com/rawphp/RawSession/issues)PHP

Since Dec 24Pushed 11y ago1 watchersCompare

[ Source](https://github.com/rawphp/RawSession)[ Packagist](https://packagist.org/packages/rawphp/raw-session)[ RSS](/packages/rawphp-raw-session/feed)WikiDiscussions master Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

RawSession - A Simple Session Wrapper Class for PHP Applications
================================================================

[](#rawsession---a-simple-session-wrapper-class-for-php-applications)

[![Build Status](https://camo.githubusercontent.com/8ead1823c2b87beb3c4d59374d04ee5138321f7016442702e75d57c943275592/68747470733a2f2f7472617669732d63692e6f72672f7261777068702f52617753657373696f6e2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/rawphp/RawSession) [![Coverage Status](https://camo.githubusercontent.com/8bcc56476bb1ac70567d6473cfd0e8a76387b9381fbef0e9c3930cc16ad8e9af/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f7261777068702f52617753657373696f6e2f62616467652e706e673f6272616e63683d6d6173746572)](https://coveralls.io/r/rawphp/RawSession?branch=master)

[![Latest Stable Version](https://camo.githubusercontent.com/12109bbc5272db7b8b061307f7034dde6e46191e4794b92e5038400857e1c61a/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d73657373696f6e2f762f737461626c652e737667)](https://packagist.org/packages/rawphp/raw-session) [![Total Downloads](https://camo.githubusercontent.com/900176073ccb62f387468c2c53836177c38ef1e68c2bc0b971543d97833f8ade/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d73657373696f6e2f646f776e6c6f6164732e737667)](https://packagist.org/packages/rawphp/raw-session)[![Latest Unstable Version](https://camo.githubusercontent.com/b31d1d3b487b351b9f832b9f43fca69dd64ffe433524d82f597def3ae93f73e4/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d73657373696f6e2f762f756e737461626c652e737667)](https://packagist.org/packages/rawphp/raw-session) [![License](https://camo.githubusercontent.com/0632dd2608688856e74f36d72a98982f3d779afddfe590d50abc7a359e282bc6/68747470733a2f2f706f7365722e707567782e6f72672f7261777068702f7261772d73657373696f6e2f6c6963656e73652e737667)](https://packagist.org/packages/rawphp/raw-session)

Package Features
----------------

[](#package-features)

- Easily manage sessions with `start()`, `close()`, `destroy()` and `recreate()`
- Manage data persistence across requests with `add()`, `get()`, `remove()`

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

[](#installation)

### Composer

[](#composer)

RawSession is available via [Composer/Packagist](https://packagist.org/packages/rawphp/raw-session).

Add `"rawphp/raw-session": "0.*@dev"` to the require block in your composer.json and then run `composer install`.

```
{
        "require": {
            "rawphp/raw-session": "0.*@dev"
        }
}
```

You can also simply run the following from the command line:

```
composer require rawphp/raw-session "0.*@dev"
```

### Tarball

[](#tarball)

Alternatively, just copy the contents of the RawSession folder into somewhere that's in your PHP `include_path` setting. If you don't speak git or just want a tarball, click the 'zip' button at the top of the page in GitHub.

Basic Usage
-----------

[](#basic-usage)

```
