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 at the browser, I can see 'Cookie xxx changed" message in firebug. I would like to disable or bypass session cookies for this controller.
I read somewhere that using
session :off
would do the job, but I see it is deprecated. Is there any work around?
Thanks!
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
.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With