-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Session ID regeneration #2
Comments
I'm not sure about this. It seems a good addition, but I'm afraid to add too much logic in the middleware. |
@oscarotero i have forked this project and implemented this feature, are you looking to implement this feature and if so i can add in additional tests and documentation for this and PR. |
@sephedo Thanks for your work. I'll happily merge your PR, but I'd like to suggest some changes: instead having two methods to configure the id regeneration based in the expire time, I'd create just one method with the following signature: public function regenerateId(int $lifetime, string $lifetimeKey = 'session-lifetime'): self This prevent confusing cases like configuring the key used to save the expire time but not the seconds of the lifetime. Now the whole functionality is configured in one place. I'd also recommend to change the method name to a more descriptive option. Anyway, we can discuss these things in the PR. |
v1.10 released including this change. |
Wow, this was fast. Awesome! |
Based on time or request count, session ID should be regenerated from time to time. This would be a nice addition to this middleware.
The text was updated successfully, but these errors were encountered: