全球主机交流论坛

标题: php session文件夹怎么配置可写 [打印本页]

作者: xncxxw    时间: 2012-11-12 09:14
标题: php session文件夹怎么配置可写
php session文件夹怎么配置可写
作者: caoliu4    时间: 2012-11-12 09:15
路过看看,楼下来吧,偶是小白
作者: xncxxw    时间: 2012-11-12 09:28
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

作者: 快乐居士    时间: 2012-11-12 09:40
php.in  搜索session 改成1
作者: 李院长    时间: 2012-11-12 09:48
xncxxw 发表于 2012-11-12 09:28
Deprecated: Function session_is_registered() is deprecated in /home/ftp/h/huitangzs/wwwroot/celive/i ...

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

多少行说了,自己找文件删除相关代码
作者: xncxxw    时间: 2012-11-12 10:40
快乐居士 发表于 2012-11-12 09:40
php.in  搜索session 改成1

[Session]
; Handler used to store/retrieve data.
session.save_handler = files

作者: xncxxw    时间: 2012-11-12 10:44
快乐居士 发表于 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

复制代码

作者: 快乐居士    时间: 2012-11-12 10:48
session.use_cookies = 1
作者: xncxxw    时间: 2012-11-12 10:53
快乐居士 发表于 2012-11-12 10:48
session.use_cookies = 1

这个本来都是1啊   无需修改  ,还有其他的办法了吗

作者: 快乐居士    时间: 2012-11-12 10:54
另请高明了。我也是小白  
作者: xncxxw    时间: 2012-11-12 10:59
快乐居士 发表于 2012-11-12 10:54
另请高明了。我也是小白

谢谢




欢迎光临 全球主机交流论坛 (https://ddzzz.eu.org/) Powered by Discuz! X3.4