pirsch-analytics / pirsch

Pirsch is a drop-in, server-side, no-cookie, and privacy-focused analytics solution for Go.
https://pirsch.io
GNU Affero General Public License v3.0
928 stars 43 forks source link

SessionMaxAge should be disconnected from the session duration #272

Closed Kugelschieber closed 2 years ago

Kugelschieber commented 2 years ago

And limit the lifetime of a session. For example to 24 hours.

session.DurationSeconds = uint32(min(duration, options.SessionMaxAge.Milliseconds()/1000))