SMF Support > Server Performance and Configuration

Memcache and sessions

(1/6) > >>

Testing with both Memcache and Memcached I could get SMF to see the former, but not the latter, so my guess here is that SMF supports only Memcache. Is this correct?

Does it support storing sessions? If that is correct, how do I set it up? Is it on php.ini like this:

--- Code: ---session.save_handler = memcache
session.save_path = "tcp://localhost:11211"
--- End code ---

Correct, there are two different connectors to memcache, one with a d, one without, 2.0 only supports the older one.

SMF’s configuration for sessions is either to use the database or use whatever PHP.ini sets, so if you configure sessions in php.ini and then turn off DB sessions in SMF that should do it.

I did it. And unchecked "Use database driven sessions".
But now I cannot log out (or log in in a different browser).

Session verification failed. Please try logging out and back in again, and then try again.
--- End code ---

Reverting to old settings in php.ini recovered log in.

Hmm, weird, because that should be all you need to do. But it’s been a while since I did this. :(

MemcacheD  works fine for me and sessions... however you're configured wrong.. simply the IP and the port... self would read:

sessions_save_path = ""

You can check out the php docs, but I'm almost certain this is the case... one uses http:// leading into the path, and one doesn't.

While using memcached I also use database driven sessions, or, at least irs checked. 


[0] Message Index

[#] Next page

Go to full version