Jump to content

The ultimate community for Ruby on Rails developers.


Photo

[Share] Custom domain on Heroku failed the Facebook connect


  • Please log in to reply
No replies to this topic

#1 Kevin

Kevin

    Signalman

  • Members
  • 21 posts

Posted 21 November 2013 - 08:44 AM

Just in case anyone need it, it's caused by cookie overflow and Heroku will return R10 (boot time out) on its log. To fix this, just change the session store from cookie to database on config/initializers/session_store.rb.

 

For an example:

# Be sure to restart your server when you modify this file.

#kevinhq::Application.config.session_store :cookie_store, :key => '_kevinhq_session'

# Use the database for sessions instead of the cookie-based default,
# which shouldn't be used to store highly confidential information
# (create the session table with "rails generate session_migration")
kevinhq::Application.config.session_store :active_record_store

Push the changes to Heroku and try the Facebook connect. It should be working. Beside, saving session to database is better than on cookie, isn't it ?

 

Source of the story : http://www.kevinhq.c...to-connect.html

 






0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users