Commit Graph

8 Commits

Author SHA1 Message Date
Andrew Dolgov
25d3ce4ee8
drop SESSION-specific stuff and move encrypt/decrypt helpers to a separate class; add a command line flag to generate encryption keys 2025-04-08 08:55:44 +03:00
Andrew Dolgov
58677fc791
rename SODIUM_ENCRYPTION_KEY to SESSION_ENCRYPTION_KEY and move related stuff to Sessions class 2025-04-07 20:28:35 +03:00
Andrew Dolgov
026d68fc2d
add optional encryption for stored session data using Sodium library 2025-04-07 20:09:31 +03:00
Andrew Dolgov
20ba3c67cc
allow setting lifetime to 0 for session cookies 2025-04-07 07:14:01 +03:00
wn_
333bab90a7 Remove use of 'ReturnTypeWillChange'.
'ReturnTypeWillChange' was a workaround needed until we reached PHP 8.0, which introduced union types and allowed alignment with 'SessionHandlerInterface'.
2024-12-14 12:26:59 +00:00
wn_
abcd0e8ba2 Use native union types in most places. 2024-11-23 17:43:24 +00:00
wn_
44257b8016 Move side effects out of the 'Sessions' constructor. 2024-07-12 01:18:53 +00:00
wn_
c7cc3c92ba Add and use the 'Sessions' class. 2024-07-11 12:16:00 +00:00