We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7e8e6ed commit 88124b1Copy full SHA for 88124b1
src/think/session/driver/File.php
@@ -39,7 +39,7 @@ public function __construct(App $app, array $config = [])
39
$this->config = array_merge($this->config, $config);
40
41
if (empty($this->config['path'])) {
42
- $this->config['path'] = $app->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'session' . DIRECTORY_SEPARATOR;
+ $this->config['path'] = $app->getRuntimePath() . 'session' . DIRECTORY_SEPARATOR;
43
} elseif (substr($this->config['path'], -1) != DIRECTORY_SEPARATOR) {
44
$this->config['path'] .= DIRECTORY_SEPARATOR;
45
}
0 commit comments