symfony/symfony — pull request #10919 by richmulhern (2014-05-16 16:43:35+00:00)
Title: [MemcacheSessionHandler] [MemcachedSessionHandler] added option to explicitly set memcace prefix to nothing.

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | yes
| Fixed tickets |
| License | MIT
| Doc PR |

Previous code insisted your memcache session have a prefix. I understand it is good practice to have one, but when working with an old simplesaml project none was set and I could not add one without having update several other products. Our Symfony 2.4 code was unable to get that saml session from memcache because it kept insisting on giving the session id a prefix of 'sf2s'.

This code will now give the 'sf2s' prefix when no prefix is set, but you can explicitly set the prefix to null or empty string to have no prefix at all.