Skip to content

Releases: PhpGt/Session

Self-removal of SessionStores

22 Feb 14:54
92f0497
Compare
Choose a tag to compare
Pre-release

On a SessionStore object, there was already a remove() function, but this function only allowed for removing a child of the session store.

For instances where a SessionStore has been passed to a class for encapsulated session usage, it would be useful for that class to be able to remove the SessionStore itself. This could be done like this:

$encapsulatedSession = $session->get("example.auth");
$authentication = new Auth($encapsulatedSession);

// Inside Auth:

function logout() {
    $this->encapsulatedSession->remove();
}

Note that the above example calls remove() with no parameters, indicating that we want to remove the store itself (and all children).

Docs & deps

03 Dec 14:48
db9fa96
Compare
Choose a tag to compare
Docs & deps Pre-release
Pre-release

Minor release of documentation and dependency updates.

Dot notation for namespaces

26 Jul 15:12
3c9462a
Compare
Choose a tag to compare
Pre-release

Sessions can now be referenced using dot notation. This works for keys and namespaces.

Introduction of the `SessionStore`

22 Jul 20:21
4e39e55
Compare
Choose a tag to compare
  • SessionStore object added
  • Session kill method added
  • Basic OOP implementation complete

Bug fixes

14 May 21:43
Compare
Choose a tag to compare
Bug fixes Pre-release
Pre-release

This pre-release fully tests the Session class itself while fixing any bugs or design changes that came up in the testing process.

I.E. / Edge

20 Apr 15:31
Compare
Choose a tag to compare
I.E. / Edge Pre-release
Pre-release

A bug has been resolved that prevented I.E. and Edge from storing the session cookie correctly. This was due to the "path" parameter of the Set-Cookie header to be incorrectly sharing the on-disk path of the session file. Other browsers seemed to allow this, but has been fixed now.

First handler implemented

20 Feb 22:53
Compare
Choose a tag to compare
Pre-release

This first release marks the first working version of a SessionHandler implementation: FileHandler.

There are currently 0 tests as this class was built as an explorative feasibility idea. Now we have a working session class, tests can be written and depending on the number of issues caught, we can drive towards a v1 release pretty quickly.