Bugs: Browse | Submit New | Admin

[#12692] Original session not cleared when user switches Facebook accounts

Date:
2007-07-30 16:53
Priority:
3
Submitted By:
George Deglin (gdeglin)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Original session not cleared when user switches Facebook accounts

Detailed description
Steps to reproduce
1. Log into Facebook with some account (A)
2. Log into an iFrame application
3. Log out of Facebook
4. Log into Facebook with another account (B)
5. Go to iFrame application page.

Result:
Application will still think user A is logged in.

Expected result:
Application should prompt user B to log in.

Add A Comment: Notepad

Please login


Followup

Message
Date: 2007-11-28 02:31
Sender: George Deglin

The 0.9.7 version of RFacebook didn't seem to fix this.

However, I was able to fix it myself by using code similar
to this as a before_filter:

  def verify_session
    if session[:fb_id]
      if(session[:fb_id] != fbsession.session_user_id)
        reset_session
        redirect_to ""
      end
    end
    unless session[:fb_id]
      session[:fb_id] = fbsession.session_user_id
    end
  end
Date: 2007-09-29 16:38
Sender: Matt Pizzimenti

I think I have a solution (look at the first 3 lines of fbsession
when I release the new gem).  Please let me know if this fixes
the problem for you.  This time I'll leave the bug open till
I hear back from you ;)
Date: 2007-09-23 21:18
Sender: George Deglin

Not fixed in 0.9.6
Date: 2007-08-25 17:36
Sender: Matt Pizzimenti

I'm going to close out the bug, please reopen it if your problem
was not resolved.
Date: 2007-08-20 18:25
Sender: Matt Pizzimenti

Give 0.9.1 a try, your issue may be resolved.  Please let me
know if 0.9.1 fixes it, and then I'll close this bug.

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
status_idClosed2007-09-23 21:18gdeglin
status_idOpen2007-08-25 17:36livelearncode
resolution_idNone2007-08-25 17:36livelearncode
close_date2007-08-25 17:362007-08-25 17:36livelearncode