This repository has been archived by the owner on Jan 29, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use session identifier instead of memoizing it
This patch uses the fact that `Zend\Expressive\Session\Session` now implements `Zend\Expressive\Session\SessionIdentifierAwareInterface`. When creating a session, it passes it the session identifier discovered when introspecting cookies, if any. When persistence is invoked, it pulls the identifier from the session. This approach should solve concurrency issues, and makes it more clear when a session cookie should be sent.
- Loading branch information
1 parent
1693cdc
commit 8bf0b3d
Showing
1 changed file
with
35 additions
and
29 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters