GithubHelp home page GithubHelp logo

Comments (12)

grimen avatar grimen commented on April 28, 2024

I don't know actually, I just used it with mongrel - and in production Heroku (not sure what they run).

from devise_facebook_connectable.

szimek avatar szimek commented on April 28, 2024

There's already another opened issue about exactly the same problem and hopefully a solution for it as well: http://github.com/grimen/devise_facebook_connectable/issues#issue/15/comment/136334.

I've got this fix in my branch along with commits from joshk that seem to solve some problems with the latest (1.0.6) devise gem.

from devise_facebook_connectable.

kabriel avatar kabriel commented on April 28, 2024

ok, i didn' t catch from the subject that it was the same issue but it looks like it could be. the only solution stated on that issue is use mongrel, but not a fix. If your change does fix it hopefully we can see that in the master soon!

from devise_facebook_connectable.

szimek avatar szimek commented on April 28, 2024

The cause of it is (most likely) that Facebooker stores the session in Thread.current - see http://groups.google.com/group/phusion-passenger/browse_thread/thread/e739862c4097acb1. Here's the patch szimek/devise_facebook_connectable@ce33308 based on the comment I linked to previously.

from devise_facebook_connectable.

grimen avatar grimen commented on April 28, 2024

Yea, I think I had a discussion about this before...remembering Passenger is not fully thread-safe. Could be fixed by using session[:facebook_user] as well I believe.

from devise_facebook_connectable.

grimen avatar grimen commented on April 28, 2024

SInce I updated to Devise 1.0.6 + Warden 0.10.3 I've got this issue on Heroku as well. Really confusing: Not sure if Heroku did something to their server setup or the spooks is going on in Warden (or Devise) - I just changed a route so should not be any difference since before when it worked all good on heroku. =S Will have a break now for sleep, and hopefully get around it tomorrow. -_-

from devise_facebook_connectable.

szimek avatar szimek commented on April 28, 2024

The patch mentioned in my previous post fixed the problem for me.

from devise_facebook_connectable.

szimek avatar szimek commented on April 28, 2024

This issue can most likely be closed now.

from devise_facebook_connectable.

grimen avatar grimen commented on April 28, 2024

OK, thanks - closing.

from devise_facebook_connectable.

mattvanhorn avatar mattvanhorn commented on April 28, 2024

I have the code from that patch on my site, but I am still getting users logged in as other people. The patch may solve the logout problem, but I'm not sure it fixes the cross-thread login issue.

from devise_facebook_connectable.

szimek avatar szimek commented on April 28, 2024

In theory it should work... The first before filter - expired_session_hack - resets the session stored in the current thread to nil and then the second filter - set_facebook_session - sets it again. What server are you using?

from devise_facebook_connectable.

mattvanhorn avatar mattvanhorn commented on April 28, 2024

Using Apache/Passenger 2.2.11, facebooker-1.0.70, devise_facebook_connectable-0.2.1

from devise_facebook_connectable.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.