-
Hi, I am wondering how to handle sessions. Do I need to use Cookies with HTTP.jl ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
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. |
Beta Was this translation helpful? Give feedback.
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.