php session secure,PHP session.cookie_secure 的作用

session.cookie_secure = 1

如果开启则表明你的cookie只有通过HTTPS协议传输时才起作用。

参考问题:

i'm setting session.cookie_secure = "on" via .htaccess and it works -

confirmed by phpinfo(). this i tought enforces a secure transmission

of the session-id.

as far as i can see, the session cookie gets set, but i don't seem to

be able to store any vars in the session? am i missing something?

any help appreciated, micha

参考回答:

Unfortunately, you didn't answer my questions _or_ I couldn't understand your answers. 1. Is your pages are over httpS? If not, what do you mean by secure cookie transmission? 2. Have you enabled full error reporting? if not, add the following two lines in the beginning of your script and then retry. error_reporting(E_ALL); ini_set('display_errors', 1); 3. Post a small piece of your code which causes the problem. 4. What is your client browser/OS? 5. Post your session settings (found in INI file). I'm going for weekend rest; I'll be back Monday evening. If you post these details, I'm sure someone here might help you.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值