session.cookie_secure = 1php
若是开启则代表你的cookie只有经过HTTPS协议传输时才起做用。cookie
参考问题:session
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, michaapp
参考回答:post
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.this