开发者

What would be RoR's equivalent to PHP Session?

开发者 https://www.devze.com 2023-02-11 18:59 出处:网络
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.

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

精彩评论

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