Skip to content

Update file session adapter to match new GenieSession#3

Open
andreeco wants to merge 1 commit into
GenieFramework:mainfrom
andreeco:feat/misc
Open

Update file session adapter to match new GenieSession#3
andreeco wants to merge 1 commit into
GenieFramework:mainfrom
andreeco:feat/misc

Conversation

@andreeco
Copy link
Copy Markdown

This PR updates GenieSessionFileSession to work with the new GenieSession
API and storage model:

  • Serialize GenieSession.Session values, Base64-encode and encrypt them
    before writing to disk.
  • Decrypt, decode, and deserialize on read, and respect expires_at when
    loading.
  • Implement GenieSession.persist / GenieSession.load for the new
    Session layout.
  • Add a helper rotate_file_session! that calls GenieSession.rotate!
    and removes the old on-disk session file.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant