PHP session not working on docker
I am trying to set up a PHP application but something seems to be wrong with session handling. As you can see the configuration is quite standard. I checked the /tmp permissions from the container and got root@2217e6d458ad:/# ls -ld /tmp drwxrwxrwt 1 root root 4096 Dec 28 08:03 /tmp I also checked in runtime following snippet: $file = fopen('/tmp/foo.log', 'w'); fwrite($file, 'test'.PHP_EOL); fclose($file); echo 'path: '. session_save_path().'<br>'; var_dump(is_writable(session_save_path())); Now, the file /tmp/foo.log was created, the path was empty but the var_dump results with bool(false).
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.