I use Rails 4.0.2 and Devise 3.3.0. This application works with both Web clients and mobile clients. Web applications use sessions and mobile applications are authenticated using auth_token that is sent in params with every request.
Right now I can't find a way to prevent Rails from setting and sending cookies to mobile clients - responses always contain
Set-Cookie = request_method=GET; path=/, _myapp_session=<token...>; path=/; HttpOnly
I would highly appreciate any hints on what should I do inside my Rails Controllers by using filters or any custom rack middlewares. Also I guess that this can be solved using some custom Device strategy or something like that.
Let me know if I should provide any additional information.
Thanks.