Releases: PhpGt/Session
Self-removal of SessionStores
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
Minor release of documentation and dependency updates.
Dot notation for namespaces
Sessions can now be referenced using dot notation. This works for keys and namespaces.
Introduction of the `SessionStore`
SessionStore
object added- Session
kill
method added - Basic OOP implementation complete
Bug fixes
I.E. / Edge
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
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.