Skip to content

Commit 88124b1

Browse files
liuwaveliu21st
authored andcommittedJun 29, 2020
优化session 文件缓存 path 获取
1 parent 7e8e6ed commit 88124b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/think/session/driver/File.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public function __construct(App $app, array $config = [])
3939
$this->config = array_merge($this->config, $config);
4040

4141
if (empty($this->config['path'])) {
42-
$this->config['path'] = $app->getRootPath() . 'runtime' . DIRECTORY_SEPARATOR . 'session' . DIRECTORY_SEPARATOR;
42+
$this->config['path'] = $app->getRuntimePath() . 'session' . DIRECTORY_SEPARATOR;
4343
} elseif (substr($this->config['path'], -1) != DIRECTORY_SEPARATOR) {
4444
$this->config['path'] .= DIRECTORY_SEPARATOR;
4545
}

0 commit comments

Comments
 (0)