memcached sessions not behaving

SheepCow

Well-known member
I've got a weird problem that seems to be being caused by storing session data in memcached.

Part of my two-factor authentication add-on requires interrupting the log in process to allow the user to enter their 2nd bit of authentication.

I'm doing this by storing all the input parameters from the XenForo login form in the user's session, displaying/validating the 2-factor login, then restoring the XenForo login form data to the request and passing back to the XenForo login process.

With memcached sessions switched off this all works ok.

With memcached sessions on it no longer works for normal user logins, but appears to still work ok for admin logins ...

After a load of OTT debug messages it looks like the data just doesn't come back out of memcached ...

Any ideas?
 

Jake Bunce

XenForo moderator
Staff member
When storing sessions in a memory cache you need to make sure your cache is healthy and never gets full, otherwise you will have problems.
 

SheepCow

Well-known member
The cache isn't full, admin logins are working ok and they use the same process (except it's an admin session ;))
 
Top