LiipFunctionalTestBundle icon indicating copy to clipboard operation
LiipFunctionalTestBundle copied to clipboard

session storage in database bug (kind of)

Open hvm2hvm opened this issue 11 years ago • 3 comments

I would like to mention that for those of us who store the session data using a PdoSessionHandler the session filesystem won't work.

In this case framework.session.storage_id should be set to session.storage.php_bridge (reference: http://symfony.com/doc/current/cookbook/session/php_bridge.html ).

If I understand correctly this is because Liip uses some deprecated session storage code (see https://github.com/liip/LiipFunctionalTestBundle/issues/80 ). I didn't have time to dig deeper in the Liip code.

In case others try to find the weird exception, when leaving out storage_id: session.storage.filesystem (i.e. having only handler_id: pdo) I was getting this exception from the controller I was calling: Failed to start the session because headers have already been sent by "Project\vendor\phpunit\phpunit\PHPUnit\Util\Printer.php" at line 172.

hvm2hvm avatar Feb 11 '14 19:02 hvm2hvm

also, I implemented the session storage as described here http://symfony.com/doc/current/cookbook/configuration/pdo_session_storage.html

hvm2hvm avatar Feb 11 '14 19:02 hvm2hvm

interesting on working on a PR to fix #80?

lsmith77 avatar Feb 23 '14 17:02 lsmith77

Hmm, yeah, I will only have time to look into it during the weekend.

hvm2hvm avatar Feb 24 '14 19:02 hvm2hvm