<script type="text/javascript">
function CheckSession() {
var session = '<%=Session["username"] != null%>';
//session = '<%=Session["username"]%>';
alert(session);
if (session == false) {
alert("Your Session has expired");
window.location = "login.aspx";
}
else {
alert(session);
}
}
</script>
function CheckSession() {
var session = '<%=Session["username"] != null%>';
//session = '<%=Session["username"]%>';
alert(session);
if (session == false) {
alert("Your Session has expired");
window.location = "login.aspx";
}
else {
alert(session);
}
}
</script>
No comments:
Post a Comment