2
我在PHP兩會:檢查會話的存在(Nginx的)
$_SESSION["session"]["key"] = md5 ($token . $userAgent . $ip);
$_SESSION["session"]["timeout"] = time();
只是想檢查nginx的會議,嘗試這種代碼沒有成功:
location/{
if ($request_filename ~* "index.php") {
break;
}
if ($http_cookie ~* "session") {
break;
}
rewrite ^.+$ https://localhost/index.php last;
}
任何線索?
謝謝。
謝謝你幫助我,但我不能把'鑰匙'放入cookie中,任何人都可以得到這個安全原因。 – Caio 2010-08-22 17:33:33
沒關係我很困惑:S – Caio 2010-08-22 17:46:25
再次閱讀,小更新 – RobertPitt 2010-08-22 17:52:19