随笔-3  评论-26  文章-41  trackbacks-0
登陆页login.asp:

< %
if  request.Form.count > 0   then  
session(
" username " ) = request( " username " )
application(session(
" username " )) = session.SessionID
response.Redirect(
" index.asp " )
end   if
%
>
< form method = post action = "" >
< input type = " text "  name = " username " >< input type = " submit " >
</ form >

其他需要认证的页面index.asp:

< %
if  application(session( " username " )) = session.SessionID  then
response.Write(
" 已经登陆 " )
else
response.Write(
" 没有登陆 " )
end   if
%
>
posted on 2007-03-10 10:25 百年 阅读(179) 评论(0)  编辑  收藏 所属分类: Asp Article

只有注册用户登录后才能发表评论。


网站导航: