English 中文(简体)
会话目录权限
原标题:Permission for session directory

我和我的服务器遇到一个问题, 即php 会话无法存储数据。 现在, 我将会话目录权限更改为777. 任何人都能确认此权限正确且安全吗?

问题回答

正如用户 prehfeldt 所说, “ 正确和安全” 取决于上下文。 重要的是, 正如我从您的问题中理解的那样, 您已经定制了保存 php 会话的目录。 这是一个好的做法, 特别是如果您是在共享主机上。 由于会议目录没有放在您的公共文件夹中( 任何人都可以访问), 您设定的权限不应该成为问题 。

无论如何,对于代表服务器的用户来说,需要的最小权限是读写/写权限(通常对于apache apache 使用所有者 & amp; group www- data 运行,但对于所有 Linux 服务器的分布,情况可能并非如此)。



上一篇:
下一篇:


相关问题
why the session in iis automatically log out?

I used iis6, and when i called a function Directory.delete(), the all the session relate this website will be logged out. and i debugged the website, i found no exception. any one have ideas on this ? ...

Check session from a view in CodeIgniter

What is the best way to check session from a view in CodeIgniter, it shows no way in their user guide, otherwise I will have to make two views on everything, which is kinda weird...still a newbie to ...

Can I get the size of a Session object in bytes in c#?

Is it possible to get the size(in bytes) of a Session object after storing something such as a datatable inside it? I want to get the size of a particular Session object, such as Session["table1"], ...

提供严格分类的出席会议物体

提供严格分类的与会机会的最佳方式是什么? 我正计划转而选择矩阵,这正在促使汇编者抱怨我的幻觉方案拟订方法......

PHP Session is not destroying after user logout

I m trying to create an authentication mechanism for my PHP Application and I m having difficulty destroying the session. I ve tried unsetting the authentication token which was previously set within ...

热门标签