Rails 3 disabling session cookies

前端 未结 10 1970
梦如初夏
梦如初夏 2020-11-30 00:06

I have RESTful API written on RoR 3. I have to make my application not to send \"Set-Cookie header\" (clients are authorizing using auth_token parameter).

I have tri

10条回答
  •  日久生厌
    2020-11-30 00:32

    I myself truly missed being able to declaratively turn off sessions (using session :off)

    ... thus I brought it "back" - use it just like in plain-old-rails (<= 2.2) :

    than of course this might require some additional Devise specific hacking of your own, since session_off might cause session == nil in a controller, and most rails extensions since 2.3 simply assume a lazy session that shall not be nil ever.

    https://github.com/kares/session_off

提交回复
热议问题