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

memcached sessions not behaving

Discussion in 'XenForo Development Discussions' started by SheepCow, Jun 21, 2013.

  1. SheepCow

    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?
  2. Jake Bunce

    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.
  3. SheepCow

    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 ;))

Share This Page