Using ASP to display the current online user information, not simply show the number of people that kind! [3]

Source: Internet
Author: User
Tags session id
Show | online Tungse at 00-9-3 02:52:23 in: ASP zone

This is Show_users.asp's original program.
<%
If rstactiveusers.recordcount > 0 Then
Rstactiveusers.movefirst

Response.Write "<table border=" "1" ">" & vbCrLf

Response.Write "<thead>" & VbCrLf
Response.Write "<th>session id</td>" & vbCrLf
Response.Write "<th>ip address</th>" & vbCrLf
Response.Write "<th>user agent</th>" & vbCrLf
Response.Write "<th>session Start time</th>" & vbCrLf
Response.Write "</thead>" & VbCrLf

Do as not rstactiveusers.eof

Response.Write "<tr>" & VbCrLf
Response.Write "<td>" & Rstactiveusers.fields ("id"). Value & "</td>" & VbCrLf
Response.Write "<td>" & Rstactiveusers.fields ("IP"). Value & "</td>" & VbCrLf
Response.Write "<td>" & Rstactiveusers.fields ("Browser"). Value & "</td>" & VbCrLf
Response.Write "<td>" & Rstactiveusers.fields ("Started"). Value & "</td>" & VbCrLf
Response.Write "</tr>" & VbCrLf

Rstactiveusers.movenext
Loop
Response.Write "</table>" & VbCrLf

End If
%>

This is Show_count.asp's original program.
<b><font color= "#CC0000" ><%= rstactiveusers.recordcount%></font> Online users </b>



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.