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.

你可能感兴趣的:(PHP session.cookie_secure 的作用)