隨筆-3  評(píng)論-26  文章-41  trackbacks-0
          登陸頁(yè)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 >

          其他需要認(rèn)證的頁(yè)面index.asp:

          < %
          if ?application(session( " username " )) = session.SessionID? then
          response.Write(
          " 已經(jīng)登陸 " )
          else
          response.Write(
          " 沒有登陸 " )
          end ? if
          %
          >
          posted on 2007-03-10 10:25 百年 閱讀(191) 評(píng)論(0)  編輯  收藏 所屬分類: Asp Article
          主站蜘蛛池模板: 类乌齐县| 大渡口区| 明水县| 民丰县| 会昌县| 奇台县| 法库县| 临朐县| 鹿邑县| 淮阳县| 平度市| 滁州市| 丰宁| 晋州市| 香格里拉县| 沽源县| 绍兴市| 东乡| 华蓥市| 明水县| 宁强县| 奉化市| 富锦市| 吴旗县| 印江| 铜鼓县| 蒲江县| 行唐县| 襄樊市| 北碚区| 田林县| 伊宁县| 专栏| 通辽市| 阿勒泰市| 深水埗区| 临漳县| 于田县| 日照市| 安徽省| 临江市|