Closed twrichards closed 8 months ago
Seen on auth, usage, metadata-editor, thrall, leases, cropper, collections, kahuna (merged by @twrichards 8 minutes and 58 seconds ago) Please check your changes!
Seen on image-loader (merged by @twrichards 9 minutes and 6 seconds ago) Please check your changes!
Turns out that Angular's
$cookies
library defaults to session cookies (which I didn't spot, since the extension I was using to view the cookies whilst developing showed an expiry time).This PR adds an
expires
property to the cookie when setting it (set to today plus 399 days - the max expiry enforced by some browsers) and if the cookie exists it resets it every page load to effectively extend the expiry indefinitely (that also cleans-up/replaces the old 'session' cookies).