隨筆-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 百年 閱讀(194) 評論(0)  編輯  收藏 所屬分類: Asp Article
          主站蜘蛛池模板: 长子县| 乐陵市| 河北省| 马山县| 周口市| 乐至县| 栖霞市| 雷州市| 新田县| 宜兰市| 曲靖市| 湘阴县| 湖南省| 交城县| 金山区| 新巴尔虎右旗| 徐闻县| 嵩明县| 夹江县| 南漳县| 建瓯市| 吉林省| 航空| 班玛县| 泸西县| 图们市| 新闻| 芒康县| 陵川县| 沾益县| 应用必备| 贞丰县| 河北区| 诸城市| 绥江县| 康乐县| 星子县| 招远市| 英山县| 丹江口市| 剑川县|