全球主机交流论坛

 找回密码
 注册

QQ登录

只需一步,快速开始

IP归属甄别会员请立即修改密码
查看: 1195|回复: 10
打印 上一主题 下一主题

[Windows VPS] php session文件夹怎么配置可写

[复制链接]
跳转到指定楼层
1#
发表于 2012-11-12 09:14:04 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
php session文件夹怎么配置可写
2#
发表于 2012-11-12 09:15:03 | 只看该作者
路过看看,楼下来吧,偶是小白
3#
 楼主| 发表于 2012-11-12 09:28:55 | 只看该作者
Deprecated: Function session_is_registered() is deprecated in /home/ftp/h/huitangzs/wwwroot/celive/include/admin/check.inc.php on line 7

Deprecated: Function session_is_registered() is deprecated in /home/ftp/h/huitangzs/wwwroot/celive/include/admin/check.inc.php on line 7
4#
发表于 2012-11-12 09:40:46 | 只看该作者
php.in  搜索session 改成1
5#
发表于 2012-11-12 09:48:03 | 只看该作者
xncxxw 发表于 2012-11-12 09:28
Deprecated: Function session_is_registered() is deprecated in /home/ftp/h/huitangzs/wwwroot/celive/i ...

这跟权限无关,是用了太老的函数

多少行说了,自己找文件删除相关代码
6#
 楼主| 发表于 2012-11-12 10:40:32 | 只看该作者
快乐居士 发表于 2012-11-12 09:40
php.in  搜索session 改成1

[Session]
; Handler used to store/retrieve data.
session.save_handler = files
7#
 楼主| 发表于 2012-11-12 10:44:58 | 只看该作者
快乐居士 发表于 2012-11-12 09:40
php.in  搜索session 改成1

发现很多,修改那个啊 ,求解
  1. [Session]
  2. ; Handler used to store/retrieve data.
  3. session.save_handler = files

  4. ; Argument passed to save_handler.  In the case of files, this is the path
  5. ; where data files are stored. Note: Windows users have to change this
  6. ; variable in order to use PHP's session functions.
  7. ;
  8. ; As of PHP 4.0.1, you can define the path as:
  9. ;
  10. ;     session.save_path = "N;/path"
  11. ;
  12. ; where N is an integer.  Instead of storing all the session files in
  13. ; /path, what this will do is use subdirectories N-levels deep, and
  14. ; store the session data in those directories.  This is useful if you
  15. ; or your OS have problems with lots of files in one directory, and is
  16. ; a more efficient layout for servers that handle lots of sessions.
  17. ;
  18. ; NOTE 1: PHP will not create this directory structure automatically.
  19. ;         You can use the script in the ext/session dir for that purpose.
  20. ; NOTE 2: See the section on garbage collection below if you choose to
  21. ;         use subdirectories for session storage
  22. ;
  23. ; The file storage module creates files using mode 600 by default.
  24. ; You can change that by using
  25. ;
  26. ;     session.save_path = "N;MODE;/path"
  27. ;
  28. ; where MODE is the octal representation of the mode. Note that this
  29. ; does not overwrite the process's umask.
  30. session.save_path = "/tmp"

  31. ; Whether to use cookies.
  32. session.use_cookies = 1

  33. ; This option enables administrators to make their users invulnerable to
  34. ; attacks which involve passing session ids in URLs; defaults to 0.
  35. ; session.use_only_cookies = 1

  36. ; Name of the session (used as cookie name).
  37. session.name = PHPSESSID

  38. ; Initialize session on request startup.
  39. session.auto_start = 0

  40. ; Lifetime in seconds of cookie or, if 0, until browser is restarted.
  41. session.cookie_lifetime = 0

  42. ; The path for which the cookie is valid.
  43. session.cookie_path = /

  44. ; The domain for which the cookie is valid.
  45. session.cookie_domain =

  46. ; Handler used to serialize data.  php is the standard serializer of PHP.
  47. session.serialize_handler = php

  48. ; Define the probability that the 'garbage collection' process is started
  49. ; on every session initialization.
  50. ; The probability is calculated by using gc_probability/gc_divisor,
  51. ; e.g. 1/100 means there is a 1% chance that the GC process starts
  52. ; on each request.

  53. session.gc_probability = 1
  54. session.gc_divisor     = 1000

  55. ; After this number of seconds, stored data will be seen as 'garbage' and
  56. ; cleaned up by the garbage collection process.
  57. session.gc_maxlifetime = 1440

  58. ; PHP 4.2 and less have an undocumented feature/bug that allows you to
  59. ; to initialize a session variable in the global scope, albeit register_globals
  60. ; is disabled.  PHP 4.3 and later will warn you, if this feature is used.
  61. ; You can disable the feature and the warning seperately. At this time,
  62. ; the warning is only displayed, if bug_compat_42 is enabled.

  63. session.bug_compat_42 = 0
  64. session.bug_compat_warn = 1

  65. ; Check HTTP Referer to invalidate externally stored URLs containing ids.
  66. ; HTTP_REFERER has to contain this substring for the session to be
  67. ; considered as valid.
  68. session.referer_check =

  69. ; How many bytes to read from the file.
  70. session.entropy_length = 0

  71. ; Specified here to create the session id.
  72. session.entropy_file =

  73. ;session.entropy_length = 16

  74. ;session.entropy_file = /dev/urandom

  75. ; Set to {nocache,private,public,} to determine HTTP caching aspects.
  76. ; or leave this empty to avoid sending anti-caching headers.
  77. session.cache_limiter = nocache

  78. ; Document expires after n minutes.
  79. session.cache_expire = 180

复制代码
8#
发表于 2012-11-12 10:48:43 | 只看该作者
session.use_cookies = 1
9#
 楼主| 发表于 2012-11-12 10:53:53 | 只看该作者
快乐居士 发表于 2012-11-12 10:48
session.use_cookies = 1

这个本来都是1啊   无需修改  ,还有其他的办法了吗
10#
发表于 2012-11-12 10:54:40 | 只看该作者
另请高明了。我也是小白  
您需要登录后才可以回帖 登录 | 注册

本版积分规则

Archiver|手机版|小黑屋|全球主机交流论坛

GMT+8, 2025-10-10 08:28 , Processed in 0.071647 second(s), 10 queries , Gzip On, MemCache On.

Powered by Discuz! X3.4

© 2001-2023 Discuz! Team.

快速回复 返回顶部 返回列表