なぜかリダイレクトするページがキャッシュされて、exit()が使用されていない場合、Internet Explorerのアドレスバーにリダイレクトを実行するURLが表示されたままになる。
直すには、
直すには、
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT"); // Date in the past
header("Location: http://www.osakos.com/");
exit();
05/01: JavaScript > クッキー Cookies
Crispy JavaScript Cookies: JavaScript Cookie Functions - Doc JavaScript
function setCookie(name, value, expires, path, domain, secure) {
if(!expires)
{
expires = new Date();
var yy = expires.getYear();
if (yy < 2000) yy += 1900;
expires.setYear(yy+1);
}
if(value.length <= 4000)
{
var curCookie = name + "=" + escape(value) +
((expires) ? "; expires=" + expires.toGMTString() : "") +
((path) ? "; path=" + path : "") +
((domain) ? "; domain=" + domain : "") +
((secure) ? "; secure" : "");
document.cookie = curCookie;
}
}