2017 © Pedro Peláez
 

library phpsession

A simple age and activity based session library.

image

joefallon/phpsession

A simple age and activity based session library.

  • Wednesday, July 13, 2016
  • by jfallon
  • Repository
  • 2 Watchers
  • 2 Stars
  • 79 Installations
  • PHP
  • 2 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 11 Versions
  • 0 % Grown

The README.md

phpsession

By Joe Fallon, (*1)

This library has the following features:, (*2)

  • Fully unit tested.
  • Does not keep the session open between reads and writes. This allows AJAX requests to not be blocked.
  • Simple to use. Can be fully understood in a matter of minutes.
  • Allows a maximum age to be used for session invalidation.
  • Allows a maximum inactivity time to be used for session invalidation.

Installation

The easiest way to install PHP Scalars is with Composer. Create the following composer.json file and run the php composer.phar install command to install it., (*3)

{
    "require": {
        "joefallon/phpsession": "*"
    }
}

Usage

$foo     = 'bar';
$session = new Session();
$session->write($foo, 'value');
$session->read($foo);   // value

The Session class contains the following methods:, (*4)

__construct($maxAgeInSecs = 1800, $lastActivityTimeoutInSecs = 1800)
read($key)
write($key, $val)
unsetSessionValue($key)
maxAgeTimeoutExpired()
lastActivityTimeoutExpired()
destroy()

The Versions

13/07 2016

dev-master

9999999-dev https://github.com/joefallon/phpsession

A simple age and activity based session library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

13/07 2016

dev-develop

dev-develop https://github.com/joefallon/phpsession

A simple age and activity based session library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

13/07 2016

v4.0.1

4.0.1.0 https://github.com/joefallon/phpsession

A simple age and activity based session library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

27/12 2015

v4.0.0

4.0.0.0 https://github.com/joefallon/phpsession

A simple age and activity based session library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

06/02 2015

v3.0.2

3.0.2.0 https://github.com/joefallon/phpsession

A simple age and activity based session library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

06/02 2015

v3.0.1

3.0.1.0 https://github.com/joefallon/phpsession

A simple age and activity based session library.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

05/02 2015

v3.0.0

3.0.0.0 https://github.com/joefallon/phpsession

phpsession

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

09/12 2014

v2.1.1

2.1.1.0 https://github.com/joefallon/phpsession

phpsession

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

29/10 2014

v2.1.0

2.1.0.0 https://github.com/joefallon/phpsession

phpsession

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php

26/10 2014

v2.0.0

2.0.0.0 https://github.com/joefallon/phptime

This package contains a set of classes for making it easier to work with time in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php time data chronograph

22/10 2014

v1.0.0

1.0.0.0 https://github.com/joefallon/phptime

This package contains a set of classes for making it easier to work with time in PHP.

  Sources   Download

MIT

The Requires

  • php >=5.3.0

 

The Development Requires

php time data chronograph