var name = "user";
错误:
setTimeout("window.location= './safeAccess.php?login='" + name1, 3000);
正确:
setTimeout("window.location= './safeAccess.php?login=" + name1 + "'", 3000);