Codeigniter - 处理没有Cookie的会话 [英] Codeigniter - Handle Sessions without cookies

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

问题描述

某些用户可能未启用Cookie。是否有CI插件自动生成GET参数并解析这些参数(例如在控制器的构造函数中)?

Some users might not have cookies enabled. Is there a plugin for CI that automatically generates GET-Parameters and parses those parameters (for example in the constructor of a controller)?

什么是好的CI-

推荐答案

在CodeIgniter 3中,会话库不使用Cookie。
在以前的CodeIgniter版本中,cookie驱动程序是唯一的选项,CI的开发人员收到了不提供该选项的负反馈。收到来自社区的反馈,cookie驱动程序被删除,因为它是不安全的。

在CI 3会话库自带4个驱动程序或存储引擎,您可以使用:文件,数据库,redis,memcached 。

In CodeIgniter 3 the session library doesn't use cookies. In previous CodeIgniter versions "cookie driver" was the only option and the developers of CI have received negative feedback on not providing that option. Listening to feedback from the community, cookie driver was dropped because it is unsafe.
In CI 3 the Session library comes with 4 drivers, or storage engines, that you can use: files, database, redis, memcached.

www .codeigniter.com / userguide3 / libraries / sessions.html#session-drivers

这篇关于Codeigniter - 处理没有Cookie的会话的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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