yiisoft / user

Convenient user identity management and access checking.
https://www.yiiframework.com/
BSD 3-Clause "New" or "Revised" License
18 stars 8 forks source link

Need method to set cookie durantion in runtime #85

Closed g-rodigy closed 10 months ago

g-rodigy commented 11 months ago

CookieLogin need method withDuration for set cookie with this duration. By default cookie duration set in config and no way to change it. For example cookie duration is null (session cookie) and need set to some long time from form like "Remember Me" option.

Additional info

Q A
Version 2.0.0
vjik commented 11 months ago

This can be resolved by two ways: 1) Create new method addCookieWithDuartion 2) Add parameter $duration to existing method addCookie

samdark commented 11 months ago

2nd way makes sense.

vjik commented 10 months ago

Done by #86