geomate icon indicating copy to clipboard operation
geomate copied to clipboard

Fix cookie expiration time when cookieDuration is 0

Open aelvan opened this issue 10 months ago • 0 comments

If cookieDuration is set to 0, the assumption should be that we want to create a session cookie. For all practical purposes it works as expected now, but sine the cookie is set to time() + cookieDuration, it semantically isn't a session cookie.

Change this to be 0 of cookieDuration is:

https://github.com/vaersaagod/geomate/blob/dd6396b1a03dded9016771d813c7604cb48b1916/src/services/CookieService.php#L35C9-L35C116

aelvan avatar Mar 04 '25 09:03 aelvan