Git Product home page Git Product logo

Comments (7)

cconstantin avatar cconstantin commented on June 22, 2024

Any thoughts on this? I'm getting close to a prod release of my app and I was hoping to create a rails_session plug before that, containing the changes that didn't make sense to include in plug.

from plug.

josevalim avatar josevalim commented on June 22, 2024

Thanks for all the proposals. I agree making it deserialize Rails stuff is a goal per se but we are definitely making Plug more robust with those changes. I think at the end you will likely need a custom store, even because those defaults changes with Rails versions in Rails too. :)

from plug.

cconstantin avatar cconstantin commented on June 22, 2024

Thanks @josevalim. I'll include the rest into a custom session store (the base16 rails encoding for digest and the encoding of the cookie name and value).

from plug.

guilleiguaran avatar guilleiguaran commented on June 22, 2024

@cconstantin and please publish it on github <3

from plug.

cconstantin avatar cconstantin commented on June 22, 2024

@guilleiguaran it will be on hex

from plug.

cconstantin avatar cconstantin commented on June 22, 2024

For reference until I find the time to package this and submit to hex https://github.com/cconstantin/plug/tree/rails-session has the two changes needed to decode rails session cookies.

from plug.

cconstantin avatar cconstantin commented on June 22, 2024

Finally got around to publishing a rails compatible cookie store:
https://hex.pm/packages/plug_rails_cookie_session_store

from plug.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.