如何删除ASP网站后台登陆检查程序
有一个网站是ASP写的,因为服务器不稳定,登陆后台后2分钟就自动登出,我想把那段自检的程序删除掉。
普通页面直接删除下面这段就可以了。
<%if session("admin")="" then
response.Write "<script LANGUAGE='javascript'>alert('网络超时或者您还没有登录请登录');window.location.href='login.asp';</script>"
response.End
else
if session("flag")>2 then
response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>"
response.End
end if
end if
%>
但是下面这段如果全部删除就会显示服务器出错,请教高手,下面这段应该怎样改才能正常运行?
<%if session("admin")="" then
response.Write "<script language='javascript'>alert('网络超时或您还没有登陆!');window.location.href='login.asp';</script>"
response.End
end if
dim bookid
bookid=request.QueryString("id")
if not isnumeric(bookid) then
response.write"<script>alert(""非法访问!"");location.href=""../index.asp"";</script>"
response.end
end if
%>
答案:留下:
<%
dim bookid
bookid=request.QueryString("id")
if not isnumeric(bookid) then
response.write"<script>alert(""非法访问!"");location.href=""../index.asp"";</script>"
response.end
end if
%>
其他:要改登录验证那儿的代码,增加超时时间久可以了。 <%
if session("flag")>2 then
response.Write "<p align=center><font color=red>您没有此项目管理权限!</font></p>"
response.End
end if
%>
上一个:有没有人 使用单片机串口下载程序时 利用USBASP AVR_fighter加到FLASH 显示 超过容量的情况?
下一个:ASP程序中有未结束的字符串常量!求高人指点