濮阳杆衣贸易有限公司

主頁 > 知識庫 > 如何最大限度地實現(xiàn)安全登錄功能?

如何最大限度地實現(xiàn)安全登錄功能?

熱門標簽:400電話是怎么申請 語音電銷機器人視頻 重慶400電話哪里辦理 自適應(yīng)地圖標注 教育機構(gòu)地圖標注 武漢如何辦理400電話 遼寧營銷智能外呼系統(tǒng)價格多少 推銷電話機器人怎么打電話的 常州智能外呼電銷機器人如何


if not IsEmpty(Session(
"cust—id")) and Len(Session("cust—id"))>0 then

' 用戶登錄后指向主頁.
 Response.Redirect("navigation/dashbrd.asp")

 ' 在此添入真正的主頁URL.

end if

bLogin = False
  

' 設(shè)置標志.
bError = False
if IsEmpty(Request(
"uid")) or Len(Request("uid")) = 0 or IsEmpty(Request("pwd")) or Len(Request("pwd")) = 0 then  

' 檢查空字符.
  bLogin = True
else

 

----------------------------------------------------------------------------------------------------------------
' 檢驗數(shù)據(jù)庫保存密碼表中是否有該用戶.
"select from customer WHERE cust—id=′ " request("uid") "′ and ′cust—pwd=′" request(″pwd″) ""
' 連接數(shù)據(jù)庫,其中request(″uid″)request(″pwd″) 為本頁html中表單中的用戶名和密碼的text.

  gbFound = False
----------------------------------------------------------------------------------------------------------------

  if not rsCust.BOF and not rsCust.EOF then
    gbFound = True
  end if

  if gbFound then
    Session("cust—id") = rsCust.Fields("cust—id")
    ' session變量中記錄有用的信息.此項為數(shù)據(jù)庫中用戶名.
    Session("cust—pwd") = rsCust.Fields("cust—pwd")

' 此項為數(shù)據(jù)庫中用戶密碼.
    Session("power") = rsCust.Fields("power")

        ' 此項為數(shù)據(jù)庫中用戶權(quán)限,可選.

    ' rsCust.ActiveConnection.Execute ("update customer set cust—login = ′ " Now "′ where cust_id = " Session("cust—id") "")

' 更新最后登錄時間,可選.

    Response.Redirect("navigation/dashbrd.asp")

        ' 真正主頁URL.
  Else
    ′UID and password not found
    bError = True bLogin = True
  end if

  rsCust.Close
   ' 關(guān)閉記錄.
   mycn—login.Close
  set mycn—login=Nothing
 end if
>

 

----------------------------------------------------------------------------------------------------------------

' 登錄頁面.

form name="login" action="default.asp" method="post" target="—top">

' html中加入FORM,并設(shè)為自發(fā)送頁.action后面要接本頁的URL,這樣,即使用戶登錄錯誤,在本頁即可獲得提示,而無須再返回前一頁登錄.

input name="uid" size="10"maxlength="10" style="HEIGHT: 21px; WIDTH: 101px">

input name="pwd"type="password" size="10" maxlength="10">

[1]

標簽:襄陽 中山 威海 邯鄲 雞西 柳州 朔州 遵義

巨人網(wǎng)絡(luò)通訊聲明:本文標題《如何最大限度地實現(xiàn)安全登錄功能?》,本文關(guān)鍵詞  如何,最大限度,地,實現(xiàn),;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請?zhí)峁┫嚓P(guān)信息告之我們,我們將及時溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。
  • 相關(guān)文章
  • 下面列出與本文章《如何最大限度地實現(xiàn)安全登錄功能?》相關(guān)的同類信息!
  • 本頁收集關(guān)于如何最大限度地實現(xiàn)安全登錄功能?的相關(guān)信息資訊供網(wǎng)民參考!
  • 推薦文章
    两当县| 苏尼特右旗| 仪征市| 碌曲县| 马龙县| 交城县| 昌江| 长子县| 洪江市| 浦东新区| 奈曼旗| 涞源县| 连云港市| 泸州市| 枣庄市| 通化市| 宁强县| 会理县| 会东县| 丹东市| 临西县| 綦江县| 绥阳县| 泽库县| 永善县| 祁连县| 辽宁省| 贵阳市| 西宁市| 湾仔区| 凤山市| 枣庄市| 高安市| 新沂市| 托克逊县| 和政县| 油尖旺区| 施秉县| 福安市| 石楼县| 华阴市|