0

I keep getting an error when trying to access my sessions

PHP Fatal error: Uncaught exception 'Zend_Session_Exception' with message 'Zend_Session::start() - /mnt/projects/.../Symfony/Component/HttpFoundation/Session/Storage/Proxy/SessionHandlerProxy.php(Line:69): Error #2 SessionHandler::read(): Session data file is not created by your uid

The session file exists, is readable and writable by apache, I have no idea what is wrong.

The session config is only:

session:
    storage_id: session.storage.native

What's wrong here? I have never experienced it before. The whole SF session abstraction looks over engineered to say the least

Vladimir Hraban
  • 3,543
  • 4
  • 26
  • 46
  • http://stackoverflow.com/questions/39980171/symfony-3-1-5-warning-sessionhandlerread-session-data-file-is-not-created – Jeremy Harris Nov 08 '16 at 16:09
  • @JeremyHarris I have seen that one, and my save path is /var/lib/php/sessions already. Also, the session file does exist – Vladimir Hraban Nov 08 '16 at 16:13
  • 1
    @JeremyHarris Okay, that was strange. Instead of relying on the fallback to php.ini setting (that was that directory) I specified in the config explicitly. And it works now. It is strange because the session file was indeed created, so probably write() used php.ini setting while read() did not X_x – Vladimir Hraban Nov 08 '16 at 16:19
  • Hmm, glad it worked. – Jeremy Harris Nov 08 '16 at 16:19
  • @VladimirHraban could you please post your comment as an answer so we'll know your question is resolved? – Veve Dec 21 '16 at 17:24

0 Answers0