开发者

What would be RoR's equivalent to PHP Session?

What would be Ruby on R开发者_如何学Goails equivalent to PHP Session?


Session is a general concept, it's not relative to PHP. Any server-side language has its own implementation to deal with sessions.

First result when googling 'ruby on rails sessions': http://www.quarkruby.com/2007/10/21/sessions-and-cookies-in-ruby-on-rails

Regards


Read here about sessions on RoR.

Basically you need to turn sessions on and off in your controllers. And then access it with something like:

@_session_val = session[:some_val]
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜