I have a Rails 2 application. And I want to set the session cookie to secure. By default it will be http only.To implement the same, I added the :secure=> true in config/initializers/session_store.rb as below:
ActionController::Base.session = {
:key => '_app_session',
:secret => '123.......',
:secure => true
}
But it does not work. However, the same thing works well in Rails 3.