I have not changed any of the configuration options for sessions in my php.ini.
我没有更改php.ini中任何会话的配置选项。
session.save_handler = "files"
session.save_path = ""
session_save_path() = ""
From what I read, if I change php.ini to something like, session.save_path = "c:\tmp\", all the session will be stored as files in c:\tmp.
根据我的阅读,如果我将php.ini更改为类似session.save_path =“c:\ tmp \”的内容,则所有会话将作为文件存储在c:\ tmp中。
My question is, how/where are the sessions being stored when I use the default configuration?
我的问题是,当我使用默认配置时,如何/在哪里存储会话?
2 个解决方案
#1
I would imagine it's wherever your OS stores temp files by default
我想这是默认情况下你的操作系统存储临时文件的地方
In *nix it's /tmp/
在* nix中它是/ tmp /
In Windows I believe it's C:\Windows\Temp
在Windows中我相信它是C:\ Windows \ Temp
#2
They should be saved in the system temporary directory - usually something like c:\windows\temp
它们应该保存在系统临时目录中 - 通常类似于c:\ windows \ temp
#1
I would imagine it's wherever your OS stores temp files by default
我想这是默认情况下你的操作系统存储临时文件的地方
In *nix it's /tmp/
在* nix中它是/ tmp /
In Windows I believe it's C:\Windows\Temp
在Windows中我相信它是C:\ Windows \ Temp
#2
They should be saved in the system temporary directory - usually something like c:\windows\temp
它们应该保存在系统临时目录中 - 通常类似于c:\ windows \ temp