Fixed  Being logged out randomly.

Ben Davis

Active member
Quite a few times now I've been randomly logged out on the forums, normally after a refresh by revisiting the forum. I'm using Facebook to log in. Just thought I'd give a bug report about it. I'm using Firefox, latest version, if that assists in anyway.
 

Mike

XenForo developer
Staff member
This is sort of a limitation of Facebook or at least the approach they want you to take. There is an option to request an offline_access permission, but that can come across very scary and really it's not what we're trying to do.

FB only gives us tokens that last for a limited amount of time. Eventually they'll time out, and FB will tell us that you're no longer logged in. We'll redirect you to the login page and you'll silently end up where you were. Unfortunately, FB doesn't seem to refresh that token while you're actually using the system. (At least it didn't seem to when I was writing the code; we're not using their full SDKs.)
 

Ben Davis

Active member
Thanks for the info Mike. Anything the user can do to correct this problem? Or are we stuck with the problem for the time being? :)
 

Mike

XenForo developer
Staff member
Well, I assume the page is refreshing and logging you back in automatically? If it's not, that's a potential issue.
 

Enigma

Well-known member
If I can interject a related idea here, it might be nice to have a prominent and easy way to encourage users who signed up via Facebook to convert their account to a "full" XenForo account (basically just setting a password for it).
 

Ben Davis

Active member
Well, I assume the page is refreshing and logging you back in automatically? If it's not, that's a potential issue.
Well when I refresh the page I'm signed out. I then click on the Log In button which logs me in without much drama. Not too sure if that's what you meant.
 
Top