Leaseweb / LswMemcacheBundle

Symfony bundle for Memcache Doctrine caching and session storage in the Web Debug Toolbar.
MIT License
202 stars 57 forks source link

Sessions doesn't work with the bundle & SF2.2.1 #6

Closed bartgryszko closed 11 years ago

bartgryszko commented 11 years ago

Hi,

I'm on Symfony 2.2.1& LswMemcacheBundle is installed. I've tried to run sessions handling on two different servers, but after ie. login, nothing happend – session isn't writed down. If I switch back to file-based-sessions everything seems to work.

My config.yml:

lsw_memcache:
    session:
        client: sessions
        prefix: "my_session_"
        ttl: 7200
    clients:
        default:
            hosts:
              - { dsn: localhost, port: 11211 }
            options:
                prefix_key: "my-dev"
        sessions:
            hosts:
                - { dsn: localhost, port: 11212 }
mevdschee commented 11 years ago

Hi Bartosz. I was not able to reproduce the problem you stated with the version you mentioned and the config you posted. The problem cloud be caused by not having memcached running on port 11212 (it fails silently). Try "telnet localhost 11212" to see whether or not you can connect. If you get "connection refused" you have memcached not listening.