Windows IIS 中的 PHP 会话警告 [英] PHP session warning in Windows IIS

查看:40
本文介绍了Windows IIS 中的 PHP 会话警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

会话开始时出错;请检查您的 PHP 和/或网络服务器日志文件并正确配置您的 PHP 安装.还要确保在您的浏览器中启用了 cookie.

Error during session start; please check your PHP and/or webserver log file and configure your PHP installation properly. Also ensure that cookies are enabled in your browser.

session_start(): open(C:\Windows\TEMP\sess_3ls3qdk77m9mhsf5tm1cdhrm05bi5kb1, O_RDWR) 失败:参数无效 (22)

session_start(): open(C:\Windows\TEMP\sess_3ls3qdk77m9mhsf5tm1cdhrm05bi5kb1, O_RDWR) failed: Invalid argument (22)

在我的 php.ini 文件中:session.save_path = "C:\temp\phpsessions"在它工作正常之前.如此突然,它显示一个错误.任何人都可以提供帮助.

in my php.ini file: session.save_path = "C:\temp\phpsessions" Before it was working fine. So sudden it is showing an error. anyone can assist with this please.

推荐答案

正如其他人已经说过的,有一个机会

As already stated by other, there is a chance that

  1. C:\temp\phpsessions 目录不存在,或者
  2. C:\Windows\Temp
  3. 中缺少其他 IIS_IUSRS 读/写权限
  1. Either the C:\temp\phpsessions directory doesn't exist,Or
  2. Else IIS_IUSRS Read/Write Permission is missing in C:\Windows\Temp

您的浏览器没有问题.

这篇关于Windows IIS 中的 PHP 会话警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆