title: RAILS/DEVISE - Setting a devise cookie to persist across different subdomains
body: <p>I use devise for authentication and want the following to work:</p>
  
  <ol>
  <li>User logs in at [<a href="http://mydomain.com]" rel="noreferrer">http://mydomain.com]</a>.</li>
  <li>The user makes a payment at [<a href="https://secure.mydomain.com]" rel="noreferrer">https://secure.mydomain.com]</a></li>
  <li>The user returns to [<a href="http://mydomain.com/action]" rel="noreferrer">http://mydomain.com/action]</a> to continue using the system</li>
  </ol>
  
  <p>I am following this tutorial: <a href="http://clearcove.ca/blog/2010/11/how-to-secure-a-rails-app-on-heroku-with-ssl-firesheep/" rel="noreferrer">http://clearcove.ca/blog/2010/11/how-to-secure-a-rails-app-on-heroku-with-ssl-firesheep/</a></p>
  
  <p>but am at the part where I need to make Devise do what authlogic does here. Help!! ;)</p>