0

なぜヘッダー ("場所:アドレス"); セッションを破棄した後、このエラーをfirefox! :|

The connection was reset
  The connection to the server was reset while the page was loading.

  The site could be temporarily unavailable or too busy. Try again in a few
    moments.
  If you are unable to load any pages, check your computer's network
    connection.
  If your computer or network is protected by a firewall or proxy, make sure
    that Firefox is permitted to access the Web.

その私のコード:

if ($cmd == "cwLogOut" or ! is_array ( $cwUserInfo )) {

    if ($_SESSION ['log'] == 1) {
        $msg = $cwlang ['log'] ['user'] . "[" . $cwUserInfo ["username"] . "]" . $cwlang ['log'] ['logout'];
        $asterisk->putLog ( $cwUserInfo ["username"], $cwUserInfo ["fullname"], 6, "logout", $cmd, $msg );
    }

    setcookie ( "cwUserId", $uid, time () - (3600 * 24 * 365), "/" );
    unset ( $_SESSION );
    unset ( $_SESSION ['cwUserId'] );
        session_destroy ();
    header("location:http://cas.local");
}
4

2 に答える 2

1

私は使用 exit(header("location:http://cas.local"));しており、それは仕事です、タンクはすべて1つです。

于 2013-10-19T07:56:36.210 に答える
0

ええ、ob_start()を使用して出力をキャッシュしてみてください

于 2013-10-19T07:47:38.220 に答える