title: How to write to /tmp/framework/sessions with Laravel on Google App Engine
body: <p>I´m trying to deploy my <strong>Laravel 8</strong> Application on <strong>Google App Engine Standard</strong>. However, when it comes to <strong>writing session files</strong> to /tmp directory, the application fails with the following error:</p>
  <pre><code>file_put_contents(/tmp/framework/sessions/UNVxfCb*********): failed to open stream: No such file or directory
  </code></pre>
  <p>As far as I found out /tmp is the only writeable directory on App Engine. I set it accordingly in my app.yaml file:</p>
  <pre><code>env_variables:
      # App configuration
      APP_STORAGE: /tmp
      SESSION_DRIVER: file
  </code></pre>
  <p>As soon as I set &quot;<strong>SESSION_DRIVER</strong>&quot; to <strong>file</strong> the application fails cause it cannot write to /tmp subfolders. Is there anything I´ve to do in my <strong>composer.json file</strong> after installation? E.g. create the directory or set folder permissions?</p>