<script>
window.onload = function () {
var s_uname = ‘<% =Session["uname"] %>‘;
if (s_uname == "") {
window.location.href = "../Login.aspx";
}
}
</script>
js检测服务器端Seesion是否存在
时间: 2024-10-18 04:37:56