Rails 3: Disable session cookies

后端 未结 4 1245
离开以前
离开以前 2021-02-05 14:09

I created a controller to serve dynamic stylesheets, so I can use the image_tag helper and add some cache control.

The problem is that every time the css file is loaded

4条回答
  •  滥情空心
    2021-02-05 14:13

    Simply done by setting the session_store to :disabled like so:

    MyApp::Application.config.session_store :disabled
    

    That will completely disable the session as well as access to the flash.

提交回复
热议问题