茄子在线看片免费人成视频,午夜福利精品a在线观看,国产高清自产拍在线观看,久久综合久久狠狠综合

    <s id="ddbnn"></s>
  • <sub id="ddbnn"><ol id="ddbnn"></ol></sub>

  • <legend id="ddbnn"></legend><s id="ddbnn"></s>

    asp檢查在線類
    來源:易賢網(wǎng) 閱讀:1238 次 日期:2014-08-26 09:42:52
    溫馨提示:易賢網(wǎng)小編為您整理了“asp檢查在線類”,方便廣大網(wǎng)友查閱!

    Private Function add(ByVal u,ByVal t,ByVal ip)

    Dim temp_u_str

    temp_u_str = get_u()

    temp_u_str = temp_u_str &"$"&u&"#"&t&"#"&ip

    Set_u(temp_u_str)

    End function

    '刪除某個登錄信息

    Private Function delu(ByVal u)

    Dim u_str,num,temp_u_str

    u_str = get_u()

    If Len(u_str)>0 Then

    u_str_arr = Split(u_str,"$",-1,1)

    num = UBound(u_str_arr)

    If num >0 then

    For i = 1 To num'循環(huán)查詢用戶該刪除時則刪除

    If(Split(u_str_arr(i),"#",-1,1)(0)<>u) then

    temp_u_str = temp_u_str & "$" & u_str_arr(i)

    End if

    Next

    set_u(temp_u_str)

    End if

    End if

    End function

    '檢查是否已經(jīng)登錄了Forasp.cn

    '刷新用戶信息

    Private Function flash()

    Dim u_str,now_time,num'定義用戶字符串

    now_time = now

    u_str = get_u()

    If len(u_str)>0 Then'如果存在用戶則刷新用戶

    u_str_arr = Split(u_str,"$",-1,1)

    num = UBound(u_str_arr)

    If num>0 then

    For i = 1 To num'循環(huán)每一個用戶

    u_str_info_arr = Split(u_str_arr(i),"#",-1,1)'獲取用戶登錄時間

    'response.write DateDiff("s",u_str_info_arr(1),now_time)

    If DateDiff("s",u_str_info_arr(1),now_time) > (20*60) then'這里定義過期時間,設置為20分鐘20*60秒

    'delu(u_str_info_arr(0))

    End if

    Next

    End if

    End if

    End Function

    '獲取所有的用戶信息

    Public Function get_u()

    application.lock

    get_u = application("forasp_cn")

    application.unlock

    End Function

    '設置所有用戶信息

    Private Function set_u(ByVal str)

    application.lock

    application("forasp_cn") = str

    application.unlock

    End function

    '更新登錄時間

    Function changet(ByVal u)

    Dim t,u_str,num,temp_u_str

    '轉載%77%77%77請%2E%66%6F%72%61%73%70%2E%63%6E注

    t= Now()

    u_str = get_u()

    If Len(u_str)>0 then

    u_str_arr = Split(u_str,"$",-1,1)

    num = UBound(u_str_arr)

    If num>0 Then

    For i =1 To num

    If Split(u_str_arr(i),"#")(0) = u Then

    temp_u_str = temp_u_str&"$"&u&"#"&t&"#"&Split(u_str_arr(i),"#")(2)

    Else

    temp_u_str = temp_u_str&u_str_arr(i)

    End If

    Next

    set_u(temp_u_str)

    End if

    End if

    End Function

    Public function t()

    t =Now()

    End function

    '清空所有的登錄信息

    Private Function clearu(ByVal u)

    application.lock

    application("forasp_cn") = ""

    application.unlock

    End Function

    '過程信息檢查是否已經(jīng)超過了application大小了

    Private Sub clear_application()

    Dim application_size

    application_size = 1024 *1024 '大小為1M

    If Len(application("forasp_cn"))>application_size Then

    clearu()

    Else

    flash()

    End if

    End sub

    End Class

    Set a = new user_online

    If(a.checku("d",Now(),a.getip())) Then'假設這里的b是新登錄的用戶如果已經(jīng)登錄則顯示已經(jīng)登錄,否則沒有登錄

    response.write "已經(jīng)登錄"

    Else

    response.write "沒有登錄"

    End If

    %>

    更多信息請查看IT技術專欄

    更多信息請查看網(wǎng)絡編程
    上一篇:asp類Let Get Set
    下一篇:asp讀寫txt2
    易賢網(wǎng)手機網(wǎng)站地址:asp檢查在線類

    2026上岸·考公考編培訓報班

    • 報班類型
    • 姓名
    • 手機號
    • 驗證碼
    關于我們 | 聯(lián)系我們 | 人才招聘 | 網(wǎng)站聲明 | 網(wǎng)站幫助 | 非正式的簡要咨詢 | 簡要咨詢須知 | 新媒體/短視頻平臺 | 手機站點 | 投訴建議
    工業(yè)和信息化部備案號:滇ICP備2023014141號-1 云南省教育廳備案號:云教ICP備0901021 滇公網(wǎng)安備53010202001879號 人力資源服務許可證:(云)人服證字(2023)第0102001523號
    聯(lián)系電話:0871-65099533/13759567129 獲取招聘考試信息及咨詢關注公眾號:hfpxwx
    咨詢QQ:1093837350(9:00—18:00)版權所有:易賢網(wǎng)