CodeIgniter 错误: In order to use the Session class you are required to set an encryption key
2023-09-27 14:24:03 时间
CodeIgniter SESSION 第一次用 session 遇到这个错误 ,
说是要加一个密钥才可以使用,加就加吧,
打开 config.php 找到以下代码
/*
|--------------------------------------------------------------------------
| Encryption Key
|--------------------------------------------------------------------------
|
| If you use the Encryption class or the Session class you
| MUST set an encryption key. See the user guide for info.
|
*/
$config['encryption_key'] = 'afafasfwertwerwer';
$config['encryption_key'] 后面的密钥你随便加了。加完就可以使用了。
相关文章
- sklearn-1.1.15.鲁棒性回归:异常值模型错误
- Google Earth Engine(GEE)——下载矢量数据过程中出现Property joinedWaterFeature has type Feature错误
- 修改PostgreSQL字段长度导致cached plan must not change result type错误
- 【AGC】【云函数】云函数authtype错误问题分析
- AndroidStudio编译错误:Error: null value in entry: blameLogFolder=null
- SpringBoot自定义错误页面,SpringBoot 404、500错误提示页面
- 转 ORACLE数据库ORA-00392 log 4 of thread 1 is being cleared, operation not allowed错误
- windows下重命名一个带有前缀"."dot字符的名字的错误问题
- 系统宕机:设备和应用不再是大问题,人为错误是关键
- 13. SpringBoot启动报错:Error:(3, 32) java:无法访问org.springframework.boot.SpringApplication 错误的类文件...