【发布时间】:2011-09-27 04:29:51
【问题描述】:
我有一个有函数的类,比如说class.php:
class fun {
public function get_cookie() {
$old_cookie = $_COOKIE['mycookie'];
}
public function ssl() {
//redirect from http to https
}
在另一个 php 文件中,比如说 index.php:
//include fun class
$fun = new fun;
$fun->ssl();
$fun->get_cookie();
我的问题是,由于函数 get_cookie 在 $fun->ssl() 之后,用户是否发送加密的 cookie?还是因为 cookie 代码是在 $fun->ssl() 执行之前编码的,所以 cookie 是在未加密的情况下发送的?
【问题讨论】: