由于我升级了我的代码CI 3.x,我在会话处理方面遇到了非常糟糕的问题。这里有没有人遇到过这些问题,有没有解决这个问题?
以下是其中一些
会话在一个控制器上被破坏,并且在页面重新加载后仍在另一个控制器上可用
大多数控制器和视图中的会话有时不可用
会话类已初始化但当我尝试销毁会话时,会导致会话未初始化错误。
到目前为止,我已经尝试了
目前为止我的观察
如果是文件,当我们销毁会话时,会话不会删除/ var / lib / php5中的会话文件
会话cookie会在每次刷新页面时自动生成,即使我将其删除
查看这些日志
INFO - 2016-06-20 15:17:58 --> Config Class Initialized
INFO - 2016-06-20 15:17:58 --> Hooks Class Initialized
DEBUG - 2016-06-20 15:17:58 --> UTF-8 Support Enabled
INFO - 2016-06-20 15:17:58 --> Utf8 Class Initialized
INFO - 2016-06-20 15:17:58 --> URI Class Initialized
INFO - 2016-06-20 15:17:58 --> Database Driver Class Initialized
INFO - 2016-06-20 15:17:58 --> Router Class Initialized
INFO - 2016-06-20 15:17:58 --> Output Class Initialized
INFO - 2016-06-20 15:17:58 --> Security Class Initialized
DEBUG - 2016-06-20 15:17:58 --> Global POST, GET and COOKIE data sanitized
INFO - 2016-06-20 15:17:58 --> Input Class Initialized
INFO - 2016-06-20 15:17:58 --> Language Class Initialized
INFO - 2016-06-20 15:17:58 --> Loader Class Initialized
INFO - 2016-06-20 15:17:58 --> Helper loaded: url_helper
INFO - 2016-06-20 15:17:58 --> Helper loaded: cms_helper
INFO - 2016-06-20 15:17:58 --> Helper loaded: global_helper
INFO - 2016-06-20 15:17:58 --> Helper loaded: security_helper
INFO - 2016-06-20 15:17:58 --> Database Driver Class Initialized
**ERROR - 2016-06-20 15:17:58 --> Severity: Warning --> ini_set(): A session is active. You cannot change the session module's ini settings at this time /home/casper/Documents/webapps/fca/system/libraries/Session/Session.php 313
INFO - 2016-06-20 15:17:58 --> Session: Class initialized using 'files' driver.**
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Controller Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
INFO - 2016-06-20 15:17:58 --> Model Class Initialized
**ERROR - 2016-06-20 15:17:58 --> Severity: Warning --> session_destroy(): Trying to destroy uninitialized session /home/casper/Documents/webapps/fca/application/controllers/Register.php 536**
INFO - 2016-06-20 15:17:58 --> Final output sent to browser
DEBUG - 2016-06-20 15:17:58 --> Total execution time: 0.0282