[Rails] Re: How do I set session_id cookies securely on an http page?

2010-06-11 Thread Skye Weir-Mathews
ou so much for your insight, the magic of sessions is becoming a lot clearer to me. Frederick Cheung wrote: > On Jun 10, 2:21�am, Skye Weir-Mathews wrote: >> The thing that is confusing me is that, I have the :secure >> session_option set, but when I go to an insecure

[Rails] Re: How do I set session_id cookies securely on an http page?

2010-06-09 Thread Skye Weir-Mathews
in the insecure parts of my application but I definitely can't have both? Frederick Cheung wrote: > On Jun 8, 11:35�pm, Skye Weir-Mathews wrote: > >> >> Is there a way to only pass the session_id over ssl, but have the rest >> of the page be unencrypted? > &g

[Rails] How do I set session_id cookies securely on an http page?

2010-06-08 Thread Skye Weir-Mathews
I added ActionController::Base.session_options[:secure] = true to ~/config/environments/production.rb and now my app sets a different session_id cookie on every request to a non ssl page, making the session useless. If my session_id cookie is set by a request to a https page, and I stay on http

[Rails] session_options[:secure] resets session_id on every request

2010-06-08 Thread Skye Weir-Mathews
I'm working on an ecommerce site (in Rails 2.3) and I added: ActionController::Base.session_options[:secure] = true to ~/config/environments/production.rb Now, every time I add something to my shopping cart and navigate away I get a new session_id (which essentially empties my shopping cart). H