开发者

authlogic without cookies, how?

I am developing server application with Ruby on Rails and I'd like to store session token in each request's body. For example {"token":"asdkjahsdoahgfblkasblbag"}.

And I am stuck, really don't know how to configure Authlogic to handle token from params, not via cookie. And how to prevent set-cookie head开发者_如何学JAVAer sending?


You can do that using the module Authlogic::Session. This module is responsible for authenticating the user via params.

Please check: http://github.com/binarylogic/authlogic/blob/master/lib/authlogic/session/params.rb

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜