cakephp session lose when moving from ssl to non-ssl
来源:互联网 发布:育知同创怎么样很坑吗 编辑:程序博客网 时间:2024/06/01 14:44
When we enable ssl for login/purchase related requests. it usually lose session when moving from ssl to non-ssl which might lead to you lost login status.
Workaround is to disable the session transition in cake core.
Below workaround works for cake1.3.4:
Cake was switching the session.cookie_secure ini value on-the-fly while under SSL connections automatically, So the cookie being created was a secure cookie, which the second page wouldn't recognize.
Solution, comment out /cake/lib/cake_session.php line 420 ish:
ini_set('session.cookie_secure', 1);
- cakephp session lose when moving from ssl to non-ssl
- SSL session
- Exporting SSL certificates from Windows to Linux Exporting SSL certificates from Windows to Linux L
- Warning about SSL connection when connecting to MySQL database
- This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fa
- Moving an IIS SSL certificate to a Domino Keyring File[转]
- SSL
- SSL
- ssl
- SSL
- ssl
- ssl
- SSL
- SSL
- SSL
- ssl
- SSL
- ssl
- 快速排序算法-轻微改动小应用
- J2SE 5.0新特性(一)枚举
- J2SE 5.0新特性(二)泛型
- sicily 1306
- CPP类库
- cakephp session lose when moving from ssl to non-ssl
- 扑克游戏 —— BANG
- 2011年1月23日
- 永远让基类拥有virtual的destructor
- Apache 和tomcat区别
- WinSock五种I/O模型的性能分析
- 明天,新的开始
- HRESULT和Windows Error Codes的一些基础介绍
- 投影