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