Skip to content

Any clues on how to handle session ? #163

Answered by ndortega
tynods asked this question in Q&A
Discussion options

You must be logged in to vote

Hi @tynods,

You're correct, you'll have to setup and manage sessions with cookies using HTTP. I'd recommend storing your session values in memory to get things working quickly, and then switch over to an actual db for persistence when it comes to deployment.

In the past I've been hesitant to add session handling to Oxygen, since the implementation can vary between apps based on their own security & performance requirements.

The most I could do is write a wrapper around the cookies api and automatically generate and store session IDs in memory and then offer some hooks to let people customize their own persistence strategy.

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@tynods
Comment options

@tynods
Comment options

Answer selected by ndortega
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants