Comments (12)
I don't know actually, I just used it with mongrel - and in production Heroku (not sure what they run).
from devise_facebook_connectable.
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.
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.
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.
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.
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.
The patch mentioned in my previous post fixed the problem for me.
from devise_facebook_connectable.
This issue can most likely be closed now.
from devise_facebook_connectable.
OK, thanks - closing.
from devise_facebook_connectable.
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.
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.
Using Apache/Passenger 2.2.11, facebooker-1.0.70, devise_facebook_connectable-0.2.1
from devise_facebook_connectable.
Related Issues (20)
- Connect existing accounts HOT 1
- two models with devise :authenticatable HOT 12
- mongo_mapper throws an error with save_with_validation HOT 3
- callbacks not working for me (MongoMapper) HOT 9
- `include': wrong argument type Class (expected Module) (TypeError) HOT 4
- facebook cookie and auto login problems HOT 20
- facebook_sign_in_link helper causes NoMethodError in Ruby 1.9.1 HOT 5
- How does this work? HOT 5
- Devise 1.0.6 breaks facebook_connectable HOT 2
- rails 3.0.0-beta3 and devise 1.1.rc1 HOT 2
- edit user profile question HOT 7
- Facebooker::Session::SessionExpired on User.populate(*fields) HOT 1
- HAML Issues HOT 4
- facebook_sign_out_link always use the user model? HOT 2
- not working after clearing database
- before_facebook_connect(fb_session) HOT 1
- facebook.yml callback_url has wacky side effects HOT 1
- Problem signing out with facebooker 1.0.75 HOT 2
- uninitialized constant ActiveSupport::CoreExtensions (NameError)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from devise_facebook_connectable.