PHP session.cookie_secure 的做用

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

相關文章
相關標籤/搜索