• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

memcached sessions not behaving

SheepCow

Well-known member
#1
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
#2
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.