编程语言
首页 > 编程语言> > debian11下php会话session失效

debian11下php会话session失效

作者:互联网

在debian11下通过apt安装了nginx+php7+mysql+freetds+pdo_sqlsrv后,以前php网页session变量无法传递,查日志报错:
FastCGI sent in stderr: "PHP message: PHP Warning: session_start(): Cannot find save handler ‘store’

查询php官方文档:
session.save_handler 定义处理器(handler)名称,可以获取/储存关联 session 数据。 默认为 files。 注意不同的扩展可能会注册它们各自的 save_handler。

编辑/etc/php/7.4/fpm/php.ini,将store改成files重启后正常。

标签:session,files,save,handler,debian11,php
来源: https://blog.csdn.net/weixin_44112373/article/details/122600217