Home  >  Article  >  Backend Development  >  phpStudey2010中进入phpMyAdmin出现"无法在发生异常时创建会话,请检查PHP"的解决办法

phpStudey2010中进入phpMyAdmin出现"无法在发生异常时创建会话,请检查PHP"的解决办法

WBOY
WBOYOriginal
2016-06-13 13:16:20987browse

phpStudey2010中进入phpMyAdmin出现"无法在发生错误时创建会话,请检查PHP"的解决方法

转载请标明是引用于 http://blog.csdn.net/chenyujing5678 

欢迎拍砖!

笔计本老是无帮死机,导致用DEDECMS出现很多问题,这不phpMyAdmin出现"无法在发生错误时创建会话,请检查PHP"

一、原因分析

windows版的php应该默认使用临时文件目录,可是因为什么原因,之前有对临时文件目录的权限丢失了,所以报错。

二、解决方法 :

打开php.ini文件,搜索session.save_path字段。在我们的系统中查找到了三个:

;session.save_path = "N;/path"

;session.save_path = "/tmp"

;session.save_path = "N;NODE;/path"

看来这些字段都是被关闭的,我们的解决方法 就是新建一个;session.save_path 字段,取值取一个路径。(路径得真实存在)

eg:

session.save_path = "D:\phpsession"



Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn