Home | Advertising Info85 USERS CURRENTLY ONLINE   
   Site Search Contact Us Saturday, September 20, 2014  
 
 


 
ASPProtect
User Management Application with web based screens that allow you to manage users.
www.ASPProtect.com
 
ASPBanner
Banner Rotation system. Advertisers can monitor online statistical reports via their web browsers.
www.ASPBanner.com
 
ASP Photo Gallery
Upload an unlimited amount of albums. Set up categories.Image resizing thumbnail creation.
www.ASPPhotoGallery.com
 
ASPClassifieds
Classifieds system. Set up categories. Users can register themselves. Supports picture uploads.
www.ASPClassifieds.com



DISCUSSION ARCHIVES
 
Try a free httpZip trial now and compress for less!


We didn't realize
the site was so popular.

Other Stuff
 

 
 
Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds



(Advanced)  (Components)  (Database)  (General)  (Vbscript)




ASPProtect

 
Subject: listing ip addresses of those looking at a page
From: Englishman
Date: 6/5/2000 8:14:16 AM
IP: 194.222.27.187



 

Please can someone help!
I need to list on a page all the ip addresses of the people looking at that page.
I would rather not use a DB or global.asa if it is at all possible.
The code below list all those who have connected to the page but the list just gets longer and longer. How can I remove those who have left the page?
Cheers all.

<%

RemoteIP=Request.ServerVariables("REMOTE_ADDR")

application("num")=application("num")+1
s="var"+cstr(application("num"))
i=0
found=false

while i<application("num")+1

t="var"+cstr(i)

if application(t)=RemoteIP then
found=true
end if
i=i+1
wend

if not found then
application(s)=RemoteIP
end if
%>
<html>
<body>

<P>
<%
i=0
while i<application("num")+1
t="var"+cstr(i)
response.write("<p> " +application(t))
i=i+1
wend

%>
</body>
</html>

Follow Up - Re: listing ip addresses of those looking at a page - Derick Bailey 6/15/2000 12:42:16 PM


 

   Active Server Pages Rule The World
Contact Us  
All artwork, design & content contained in this site are Copyright 1998 - 2014 PowerASP.com and Christopher J. Williams
Banner ads ,other site logos, etc are copyright of their respective companies.
STATS Unless otherwise noted - All Rights Reserved.

Active Server Pages ASP a directory of ASP tutorials applications scripts components and articles for the novice to professional developer. CJWSoft ASPProtect ASPBanner ASPClassifieds www.aspclassifieds.com, www.powerasp.com,www.cjwsoft.com,www.aspphotogallery.com,www.codewanker.com,www.aspprotect.com,www.aspbanner.com