I am using :active_record_store for session_store in Rails 4.1.1 application. I need to make session cookie secure (HTTPS only) in my application. Tried below code in development enviroment, but did not work for me.
MyApp::Application.config.session_store :session_store, key: '_session_id', secure: true
config.force_ssl = true: makes all cookie(s) as secure whcih is not requirement.
How can I set Secure flag for cookie by default in application configuration so that it instructs the browser that the cookie can only be accessed over secure SSL channels?