Crowdhailer
Creator of Raxx
Raxx.Session - manage client sessions, plug compatible
Example
@session_config Raxx.Session.config(
key: "my_session",
store: Raxx.Session.SignedCookie,
secret_key_base: String.duplicate("squirrel", 8),
salt: "epsom"
)
# Or configure at runtime and pass as state argument to server.
def handle_request(request, _state) do
{:ok, session} = Raxx.Session.fetch(request, @session_config)
# ... processing
response(:ok)
|> Raxx.Session.put(updated_session, @session_config)
# ... something went wrong
response(:forbiddent)
|> Raxx.Session.drop(@session_config)
end
Plug compatibility.
By using the SignedCookie store your sessions are compatible with verified plug sessions.
I am looking for help to port the encrypted plug sessions to this library and create a second store for EncryptedCookie hopefully I will be able to announce that below soon’
Most Liked
Crowdhailer
Creator of Raxx
Raxx.Session.EncryptedCookie
Release 0.2.3 adds support for adding encrypted sessions in addition to signed sessions.
Example configuration:
Raxx.Session.config(
store: Raxx.Session.EncryptedCookie,
secret_key_base: secret_key_base,
key: key,
encryption_salt: encryption_salt,
signing_salt: signing_salt
)
These sessions are also compatible with Plug.Sessions set up with the same secret_key_base encryption_salt and signing_salt
1
Popular in Libraries
I feel kind of stuck with the absence of a proper xml library for Elixir. Currently I use SweetXML which was ok for me more or less to pa...
New
Image is an image processing library for Elixir. It is based upon the fabulous vix library that provides a libvips wrapper for Elixir.
I...
New
FastRSS
Parse RSS feeds very quickly:
This is rust NIF built using rustler
Uses the RSS rust crate to do the actual RSS parsing
Speed...
New
I’ve just released stable versions of my Prometheus Elixir libs:
Elixir client [docs];
Ecto collector [docs];
Plugs instrumenter/Export...
New
I’ve just released version 3 of Comeonin, a password hashing library.
The following small changes have been made:
changes to the NIF c...
New
The latest release of Ace (0.10.0) includes serving content over HTTP/2.
I have started writing a webserver to teach my self more about...
New
Hello all,
I’ve been working on Svonix - a library for quickly integrating Svelte components into Phoenix views. It’s a much-needed succ...
New
None of the current solutions worked well for me, so I went ahead and built a user management system from scratch.
This project took far...
New
PhoenixWS - Websockets over Phoenix Channels
Source code on Github here: https://github.com/tmbb/phoenix_ws
Phoenix channels are a great...
New
Hi everyone!
I’m thrilled to announce a huge thing. We have been developing Elixir Moon Design System for quite a while. We are finally ...
New
Other popular topics
Phoenix 1.4.0 released
Phoenix 1.4 is out! This release ships with exciting new features, most notably
with HTTP2 support, improved deve...
New
How to handle excepions in elixir? Suppose i have A, B, C ,D, E modules. and each module has get() function. A.get() method will call th...
New
I have a relationship of love and hate with Elixir. Lots of things are just absolutely right, but there are some things that are kind of ...
New
Hello all!
I am typing this post from my new MacBook Pro with the M1 chip. I’m loving it so far, and will probably use it as my daily dr...
New
Hi folks,
Few months ago I have announced the proof-of-concept of the library to manipulate the browsers DOM objects directly from Elixi...
New
Hey guys.
I'm new to elixir and im really stocked about it. But I ran into a bit of problem - I need to convert a date sting, for examp...
New
Surface is an experimental library built on top of Phoenix LiveView and its new LiveComponent API that aims to provide a more declarative...
New
Hey all,
I discovered Elixir and I love it. I always wanted to learn a functional programming and I intended to go for Haskell, but afte...
New
Original source of discussion: This topic on the Pragmatic Programmers' Functional Web Development with Elixir, OTP, and Phoenix forum.
...
New
I have a super simple question about elixir - how would I take a file like this
foo bar baz
and output a new file that enumerates th...
New







