开发者

authlogic - do I still need Rails sessions?

开发者 https://www.devze.com 2022-12-23 07:02 出处:网络
I\'m a newbie to Rails and am starting a new project that uses AuthLogic. I\'m just a l开发者_如何学Pythonittle confused about whether AuthLogic provides everything I need to store session state, or w

I'm a newbie to Rails and am starting a new project that uses AuthLogic. I'm just a l开发者_如何学Pythonittle confused about whether AuthLogic provides everything I need to store session state, or whether I still have to include the Rails mechanism (rake db:sessions:create).

Thanks!

Tim


Yes you need sessions but you don't necessarily need db:sessions:create for that as it's only needed for the db session store. You can use the default cookie store and all the data will be stored encrypted in the cookie.

0

精彩评论

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