Archive for June 2011

how to get browser session in rails

Wednesday, June 1, 2011 · Posted in

In rails application if you want any browser session then you can get it by,

browser_token = (session[:_csrf_token] ||= ActiveSupport::SecureRandom.base64(32))

this token is changed every time when you restarts the browser.

If anyone knows any other way to get browser session in rails then please comment on this.
It will be appreciated.

Thanks

Powered by Blogger.