George K
George K
I cannot see any reason why not, either. The `{copy:true}` option is an efficient solution.
@joh-klein, I am not sure if this will work, since the old `session.id` will be copied back too. Correct me if I am wrong. I've found this stack exchange solution...
Great idea @joh-klein using the `Object.assign()` function. I wasn't familiar with it. Since it only copies the enumerable properties of the `session` object, it does not mess with the refreshed...
It seems that there is no need to remove the cookie. The `cookie.expires` value is refreshed because of `redirect()`. I guess that it's the `session.touch()` function's doing. Edit: Misclicked and...