plack / Plack-Middleware-Session

A very minimalist session library for Plack
Other
40 stars 29 forks source link

Recreating cookies with per-request values isn't documented #33

Open nwellnhof opened 9 years ago

nwellnhof commented 9 years ago

It's possible to recreate cookies with per-request values by setting change_id and one of the following keys in $env->{'psgix.session.options'}:

This is useful to implement things like a "Remember me" option, for example, so I think it should be documented.

blackprojects commented 9 years ago

+1, in the documentation is now described only global mechanism for setting values, and it is very difficult to find a solution to implement "Remember me" in application.

miyagawa commented 9 years ago

If I understand it right, features like "Remember Me" should be implemented on top of Plack::Middleware::Session in the frameworks, rather than end users (app developers) mess with the $env variables.